Skip to content

Commit

Permalink
Test coverage for MP Schema #99
Browse files Browse the repository at this point in the history
  • Loading branch information
fugerit79 committed Nov 15, 2024
1 parent 05eeec3 commit 871336c
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ public void printAll( ModelAddress current ) {
}

public ModelAddress newInstance() {
WrapperAddress current = new WrapperAddress( new HelperAddress() );
ModelAddress model = new HelperAddress();
WrapperAddress current = new WrapperAddress( model );
Assert.assertTrue( current.isEmpty() );
current.setId(new java.math.BigDecimal( "1" ));
Assert.assertFalse( current.isEmpty() );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ public void printAll( ModelLogData current ) {
}

public ModelLogData newInstance() {
WrapperLogData current = new WrapperLogData( new HelperLogData() );
ModelLogData model = new HelperLogData();
WrapperLogData current = new WrapperLogData( model );
Assert.assertTrue( current.isEmpty() );
current.setId(new java.math.BigDecimal( "1" ));
Assert.assertFalse( current.isEmpty() );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ public void printAll( ModelTestTwoFieldKey current ) {
}

public ModelTestTwoFieldKey newInstance() {
WrapperTestTwoFieldKey current = new WrapperTestTwoFieldKey( new HelperTestTwoFieldKey() );
ModelTestTwoFieldKey model = new HelperTestTwoFieldKey();
WrapperTestTwoFieldKey current = new WrapperTestTwoFieldKey( model );
Assert.assertTrue( current.isEmpty() );
current.setIdOne(new java.math.BigDecimal( "1" ));
Assert.assertFalse( current.isEmpty() );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ public void printAll( ModelUpload current ) {
}

public ModelUpload newInstance() {
WrapperUpload current = new WrapperUpload( new HelperUpload() );
ModelUpload model = new HelperUpload();
WrapperUpload current = new WrapperUpload( model );
Assert.assertTrue( current.isEmpty() );
current.setId(new java.math.BigDecimal( "1" ));
Assert.assertFalse( current.isEmpty() );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public void printAll( ModelUserData current ) {
}

public ModelUserData newInstance() {
WrapperUserData current = new WrapperUserData( new HelperUserData() );
ModelUserData model = new HelperUserData();
WrapperUserData current = new WrapperUserData( model );
Assert.assertTrue( current.isEmpty() );
current.setId(new java.math.BigDecimal( "1" ));
Assert.assertFalse( current.isEmpty() );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ public void printAll( ModelUser current ) {
}

public ModelUser newInstance() {
WrapperUser current = new WrapperUser( new HelperUser() );
ModelUser model = new HelperUser();
WrapperUser current = new WrapperUser( model );
Assert.assertTrue( current.isEmpty() );
current.setId(new java.math.BigDecimal( "1" ));
Assert.assertFalse( current.isEmpty() );
Expand Down

0 comments on commit 871336c

Please sign in to comment.