use of org.apache.openejb.test.object.Color in project tomee by apache.
the class StatelessRmiIiopTests method test60_returnColor.
/*-------------------------------------------------*/
/* Enum */
/*-------------------------------------------------*/
public void test60_returnColor() {
try {
final Color expected = Color.GREEN;
final Color actual = (Color) ejbObject.returnColor(expected);
assertNotNull("The Color returned is null", actual);
assertEquals(expected, actual);
} catch (final Exception e) {
fail("Received Exception " + e.getClass() + " : " + e.getMessage());
}
}
use of org.apache.openejb.test.object.Color in project tomee by apache.
the class StatelessRmiIiopTests method test61_returnColor2.
public void test61_returnColor2() {
try {
final Color expected = Color.GREEN;
final Color actual = (Color) ejbObject.returnColor();
assertNotNull("The Color returned is null", actual);
assertEquals(expected, actual);
} catch (final Exception e) {
fail("Received Exception " + e.getClass() + " : " + e.getMessage());
}
}
use of org.apache.openejb.test.object.Color in project tomee by apache.
the class StatelessRmiIiopTests method test63_returnNestedColor2.
public void test63_returnNestedColor2() {
try {
final Color expected = Color.GREEN;
final ObjectGraph graph = ejbObject.returnNestedColor();
assertNotNull("The ObjectGraph is null", graph);
final Color actual = (Color) graph.getObject();
assertNotNull("The Color returned is null", actual);
assertEquals(expected, actual);
} catch (final Exception e) {
fail("Received Exception " + e.getClass() + " : " + e.getMessage());
}
}
use of org.apache.openejb.test.object.Color in project tomee by apache.
the class StatelessRmiIiopTests method test62_returnNestedColor.
public void test62_returnNestedColor() {
try {
final Color expected = Color.GREEN;
final ObjectGraph graph = ejbObject.returnObjectGraph(new ObjectGraph(expected));
assertNotNull("The ObjectGraph is null", graph);
final Color actual = (Color) graph.getObject();
assertNotNull("The Color returned is null", actual);
assertEquals(expected, actual);
} catch (final Exception e) {
fail("Received Exception " + e.getClass() + " : " + e.getMessage());
}
}
Aggregations