code cleanup

merge-requests/7/head
prabathabey 10 years ago
parent f2a80d3ede
commit 2b1a5dd6c4

@ -48,9 +48,9 @@ public class DeviceManagementConfigTests {
@BeforeClass @BeforeClass
private void initSchema() { private void initSchema() {
File deviceManagementSchemaConfig = new File(DeviceManagementConfigTests.TEST_CONFIG_SCHEMA_LOCATION); File deviceManagementSchemaConfig = new File(DeviceManagementConfigTests.TEST_CONFIG_SCHEMA_LOCATION);
SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
try { try {
schema = sf.newSchema(deviceManagementSchemaConfig); schema = factory.newSchema(deviceManagementSchemaConfig);
} catch (SAXException e) { } catch (SAXException e) {
Assert.fail("Invalid schema found", e); Assert.fail("Invalid schema found", e);
} }
@ -83,7 +83,7 @@ public class DeviceManagementConfigTests {
um.unmarshal(malformedConfig); um.unmarshal(malformedConfig);
Assert.assertTrue(false); Assert.assertTrue(false);
} catch (JAXBException e) { } catch (JAXBException e) {
e.printStackTrace(); log.error("Error while unmarsharlling the device management config", e);
Assert.assertTrue(true); Assert.assertTrue(true);
} }
} }

Loading…
Cancel
Save