Skip to content

Commit

Permalink
increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
abuttaro committed Feb 4, 2018
1 parent 6d9fe4d commit 75837dd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
1 change: 0 additions & 1 deletion up-test-model/src/main/java/com/many/fields/A2J.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import javax.persistence.Transient;

@ApiName("a2j")
@SuppressWarnings("unused")
public class A2J {

private Long id;
Expand Down
21 changes: 19 additions & 2 deletions up-test-model/src/test/java/com/test/model/PojoTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,38 @@


import org.junit.Test;
import static org.junit.Assert.*;
import com.github.restup.test.assertions.Assertions;
import com.many.fields.A2J;
import com.model.test.company.Employee;
import com.petstore.Category;
import com.petstore.Order;
import com.petstore.Pet;
import com.petstore.Tag;
import com.petstore.User;

public class PojoTest {

@Test
public void testPojos() {
Assertions.pojo()
.add(5, "com.deep")
.add(1, "com.many")
.add(A2J.class)
.add(7, "com.model.test.company")
.add(4, "com.music")
.add(5, "com.petstore")
.add(Category.class, Order.class, Pet.class, Tag.class, User.class)
.add(3, "com.test.model.animals")
.add(3, "com.university")
.validate();

}

@Test
public void testEmployee() {

Employee e = new Employee();
e.setId(1l);
assertEquals(Long.valueOf(1), e.getId());
}

}

0 comments on commit 75837dd

Please sign in to comment.