* 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.
* ============LICENSE_END====================================================
*
*/
+
package org.onap.aaf.misc.env.jaxb;
import static org.junit.Assert.assertEquals;
@Mock
JAXBmar jumar;
-
+
@Mock
QName qname;
-
+
@Mock
Env env;
-
+
TimeTaken tt,ttstringify;
-
+
LogTarget logT;
-
+
@Before
public void setUp() {
initMocks(this);
} catch (JAXBException e) {
// TODO Auto-generated catch block
e.printStackTrace();
- }
-
+ }
+
}
-
+
@Test
public void teststringifyWriter() {
JAXBStringifier<JAXBmar> bdfObj = null;
} catch (JAXBException e) {
// TODO Auto-generated catch block
e.printStackTrace();
- }
-
+ }
+
}
-
+
@Test
public void teststringifyWriterException() {
JAXBStringifier<JAXBmar> bdfObj = null;
} catch (JAXBException e) {
// TODO Auto-generated catch block
e.printStackTrace();
- }
-
+ }
+
}
-
+
@Test
public void teststringifyOs() {
JAXBStringifier<JAXBmar> bdfObj = null;
} catch (JAXBException e) {
// TODO Auto-generated catch block
e.printStackTrace();
- }
-
+ }
+
}
-
+
@Test
public void teststringifyOsException() {
JAXBStringifier<JAXBmar> bdfObj = null;
} catch (JAXBException e) {
// TODO Auto-generated catch block
e.printStackTrace();
- }
-
+ }
+
}
-
+
@Test
public void testEmptyMethods() {
JAXBStringifier<JAXBmar> bdfObj = null;
bdfObj.refresh(env);
} catch (APIException e) {
assertTrue(e.getMessage().contains("Test Exception"));
- }
-
+ }
+
}
-
+
@Test
public void testPretty() {
JAXBStringifier<JAXBmar> bdfObj = null;
Object retVal = bdfObj.pretty(true);
assertTrue(retVal instanceof JAXBStringifier);
}
-
+
@Test
public void testNewInstanceException() {
JAXBStringifier<JAXBmar> bdfObj = null;
Mockito.doReturn(jumar).when(jumar).asFragment(true);
Object retVal = bdfObj.asFragment(true);
assertTrue(retVal instanceof JAXBStringifier);
-
+
}
}