Skip to content

Commit

Permalink
2095 fix redundant unused statements in test code (#10163)
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Walczak <michal.walczak@arianelabs.com>
  • Loading branch information
mwb-al committed Nov 30, 2023
1 parent 17a7b93 commit 7116c8c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

class OwnershipTrackerTest {
Expand All @@ -29,12 +28,6 @@ class OwnershipTrackerTest {
private final Id account = new Id(4, 5, 6);
private final Id token = new Id(0, 0, 1);

@BeforeEach
void setup() {
// setup the getter/setter test
subject = new OwnershipTracker();
}

@Test
void add() {
final var burn = OwnershipTracker.forRemoving(treasury, 1L);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,13 @@ void objectContractWorks() {
assertEquals(1, subj.getSerialNumber());
assertEquals(Id.DEFAULT, subj.getTokenId());

var metadata = new byte[] {107, 117, 114};
subj = new UniqueToken(Id.DEFAULT, 1, RichInstant.MISSING_INSTANT, new Id(1, 2, 3), new byte[] {111, 23, 85});
assertEquals(RichInstant.MISSING_INSTANT, subj.getCreationTime());
assertEquals(new Id(1, 2, 3), subj.getOwner());
subj.setSerialNumber(2);
assertEquals(2, subj.getSerialNumber());

metadata = new byte[] {1, 2, 3};
var metadata = new byte[] {1, 2, 3};
subj.setMetadata(metadata);
assertEquals(metadata, subj.getMetadata());
subj.setTokenId(Id.DEFAULT);
Expand Down

0 comments on commit 7116c8c

Please sign in to comment.