* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@Mock
JAXBumar jumar;
-
+
@Mock
Schema schema;
-
+
@Mock
Env env;
-
+
TimeTaken tt,ttObjectify;
-
+
LogTarget logT;
-
+
@Before
public void setUp() {
initMocks(this);
} catch (JAXBException e) {
// TODO Auto-generated catch block
e.printStackTrace();
- }
-
+ }
+
}
-
+
@Test
public void testObjectifyException() {
JAXBObjectifier<?> bdfObj = null;
} catch (JAXBException e) {
// TODO Auto-generated catch block
e.printStackTrace();
- }
-
+ }
+
}
-
+
@Test
public void testObjectifyRdr() {
JAXBObjectifier<?> bdfObj = null;
} catch (JAXBException e) {
// TODO Auto-generated catch block
e.printStackTrace();
- }
-
+ }
+
}
-
+
@Test
public void testObjectifyRdrException() {
JAXBObjectifier<?> bdfObj = null;
} catch (JAXBException e) {
// TODO Auto-generated catch block
e.printStackTrace();
- }
-
+ }
+
}
-
+
@Test
public void testObjectifyIs() {
JAXBObjectifier<?> bdfObj = null;
} catch (JAXBException e) {
// TODO Auto-generated catch block
e.printStackTrace();
- }
-
+ }
+
}
-
+
@Test
public void testObjectifyIsException() {
JAXBObjectifier<?> bdfObj = null;
} catch (JAXBException e) {
// TODO Auto-generated catch block
e.printStackTrace();
- }
-
+ }
+
}
-
+
@Test
public void testEmptyMethods() {
JAXBObjectifier<?> bdfObj = null;
bdfObj.refresh(env);
} catch (APIException e) {
assertTrue(e.getMessage().contains("Test Exception"));
- }
-
+ }
+
}
-
+
@Test
public void testNewInstance() {
JAXBObjectifier<?> bdfObj = null;
bdfObj = new JAXBObjectifier(jumar);
Object retVal = bdfObj.newInstance();
Mockito.doThrow(new IllegalAccessException("Test Exception")).when(jumar).newInstance();
-
+
} catch (IllegalAccessException e) {
assertEquals("Test Exception", e.getLocalizedMessage());
} catch (APIException e) {
e.printStackTrace();
}
}
-
+
@Test
public void testNewInstanceException() {
JAXBObjectifier<?> bdfObj = null;
// TODO Auto-generated catch block
e.printStackTrace();
}
-
+
}
}