Skip to content

Conversation

@Ariho-Seth
Copy link
Contributor

Summary

Constructor tests for the FileCreateRequest Record were added in the ProtocolLayerDataCreationTests class
A new test method i.e testFileCreateRequestCreation was added in the ProtocolLayerDataCreationTests class that implements all the needed tests for the FileCreateRequest record

Issue Link

#4

Issue Number

#4

@Ndacyayisenga-droid
Copy link
Member

@Ariho-Seth I would suggest you always run tests locally before a PR

@Ariho-Seth
Copy link
Contributor Author

Something wrong happened @Ndacyayisenga-droid ?
I actually did the test and it ran successfully !!!

@Ariho-Seth
Copy link
Contributor Author

Hello @Ndacyayisenga-droid , i think the PR is now good to go

@Ndacyayisenga-droid
Copy link
Member

Hello @Ndacyayisenga-droid , i think the PR is now good to go

@Ariho-Seth LGTM

@Ndacyayisenga-droid
Copy link
Member

@Ariho-Seth please you commited more files than you were supposed to

@Ariho-Seth
Copy link
Contributor Author

There is a small issue that was raised, on removing un used imports in those particular files , so they are the ones i removed and commited

@hendrikebbers
Copy link
Member

@Ariho-Seth looks like you tried to use NPM / NODE in the project. Since this is a java project NPM and NODE are wrong. They are for JavaScript.
If you just delete the package-lock.json file and the node_modules folder (both in root) all should be good for that topic.
Once that is done I will have a look at your changes.

@Ariho-Seth
Copy link
Contributor Author

Ohhh Yeah sure, I had some JS repo i was working with, i think somehow intermixed the commands
But I've worked on it
I think its now good to go

}



Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ariho-Seth Can you remove these extra empty lines

Assertions.assertDoesNotThrow(() -> new FileCreateRequest(maxTransactionFee, transactionValidDuration, contents, expirationTime, null));
Assertions.assertDoesNotThrow(() -> new FileCreateRequest(maxTransactionFee, transactionValidDuration, contents, null, null));
Assertions.assertThrows(IllegalArgumentException.class, () -> FileCreateRequest.of(largeContents));
Assertions.assertThrows(NullPointerException.class, () -> FileCreateRequest.of(contents, null));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just change the above line to
Assertions.assertThrows(NullPointerException.class, () -> FileCreateRequest.of(null));

import com.openelements.hedera.base.protocol.TokenAssociateRequest;
import com.openelements.hedera.base.protocol.FileUpdateRequest;
import com.openelements.hedera.base.protocol.FileInfoRequest;
import com.openelements.hedera.base.protocol.*;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ariho-Seth you should not use an asterisk wildcard(*). Its a bad practice

@Ndacyayisenga-droid
Copy link
Member

Thanks for working on this @Ariho-Seth

@Ndacyayisenga-droid Ndacyayisenga-droid merged commit b420b07 into OpenElements:main Oct 14, 2024
@hendrikebbers hendrikebbers added the hacktoberfest-accepted Reserved for PRs that are accepted for Hacktoberfest (see https://hacktoberfest.com) 🚀👾🧑🏽‍💻 label Oct 14, 2024
@vil02 vil02 mentioned this pull request Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest-accepted Reserved for PRs that are accepted for Hacktoberfest (see https://hacktoberfest.com) 🚀👾🧑🏽‍💻

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants