-
Notifications
You must be signed in to change notification settings - Fork 24
Add constructor tests for FileCreateRequest #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@Ariho-Seth I would suggest you always run tests locally before a PR |
|
Something wrong happened @Ndacyayisenga-droid ? |
|
Hello @Ndacyayisenga-droid , i think the PR is now good to go |
@Ariho-Seth LGTM |
|
@Ariho-Seth please you commited more files than you were supposed to |
|
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 |
|
@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. |
|
Ohhh Yeah sure, I had some JS repo i was working with, i think somehow intermixed the commands |
| } | ||
|
|
||
|
|
||
|
|
There was a problem hiding this comment.
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)); |
There was a problem hiding this comment.
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.*; |
There was a problem hiding this comment.
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
|
Thanks for working on this @Ariho-Seth |
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