@Component public class OneToManyTestHarness extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OneToManyTestHarness.AuthorsAndBooks
Simple container for Author and Book entities so they can be requested as one.
|
static class |
OneToManyTestHarness.TestCaseType |
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_AUTHOR |
static String |
ATTR_BOOKS |
static String |
ATTR_CHILDREN |
static String |
ATTR_PARENT |
static String |
AUTHOR_1 |
static String |
AUTHOR_2 |
static String |
AUTHOR_3 |
static String |
BOOK_1 |
static String |
BOOK_2 |
static String |
BOOK_3 |
static int |
ONE_TO_MANY_CASES |
static String |
PERSON_1 |
static String |
PERSON_2 |
static String |
PERSON_3 |
| Constructor and Description |
|---|
OneToManyTestHarness() |
| Modifier and Type | Method and Description |
|---|---|
OneToManyTestHarness.AuthorsAndBooks |
createAuthorAndBookEntities(OneToManyTestHarness.TestCaseType testCase)
Creates Author and Book entity test sets for a specific use case.
|
List<Entity> |
createPersonEntities(OneToManyTestHarness.TestCaseType testCase)
Creates Person entity test sets for a specific use case.
|
void |
postConstruct() |
public static final int ONE_TO_MANY_CASES
public static final String BOOK_1
public static final String BOOK_2
public static final String BOOK_3
public static final String AUTHOR_1
public static final String AUTHOR_2
public static final String AUTHOR_3
public static final String ATTR_BOOKS
public static final String ATTR_AUTHOR
public static final String PERSON_1
public static final String PERSON_2
public static final String PERSON_3
public static final String ATTR_PARENT
public static final String ATTR_CHILDREN
@PostConstruct public void postConstruct()
public OneToManyTestHarness.AuthorsAndBooks createAuthorAndBookEntities(OneToManyTestHarness.TestCaseType testCase)
Case 1: Book.author = nullable | no ordering Case 2: Book.author = required | no ordering Case 3: Book.author = nullable | ascending order Case 4: Book.author = nullable | descending order
public List<Entity> createPersonEntities(OneToManyTestHarness.TestCaseType testCase)
Case 1: Person.children = nullable | no ordering Case 2: Person.children = required | no ordering Case 3: Person.children = nullable | ascending order Case 4: Person.children = nullable | descending order
Copyright © 2017. All Rights Reserved.