- @Before
- public void setUp() throws Exception {
- final Method methodFoo1 = TestDataObject1.class.getMethod("foo");
- final Method methodFoo2 = TestDataObject2.class.getMethod("foo");
- TEST_UVOC_1 = new UnionValueOptionContext(TestUnion.class, TestDataObject1.class, methodFoo1,
- ValueTypeCodec.NOOP_CODEC);
- TEST_UVOC_2 = new UnionValueOptionContext(TestUnion.class, TestDataObject2.class, methodFoo2,
- ValueTypeCodec.NOOP_CODEC);
+ @BeforeClass
+ public static void beforeClass() throws Exception {
+ TEST_UVOC_1 = new UnionValueOptionContext(UnionTestType.class, LowestLevel1.class,
+ UnionTestType.class.getMethod("getLowestLevel1"), SchemaUnawareCodec.NOOP_CODEC);
+ TEST_UVOC_2 = new UnionValueOptionContext(UnionTestType.class, LowestLevel2.class,
+ UnionTestType.class.getMethod("getLowestLevel2"), SchemaUnawareCodec.NOOP_CODEC);