diff --git a/validator-core/src/main/java/fr/ign/validator/io/ModelReaderFactory.java b/validator-core/src/main/java/fr/ign/validator/io/ModelReaderFactory.java index 60e722bb..41295cd1 100644 --- a/validator-core/src/main/java/fr/ign/validator/io/ModelReaderFactory.java +++ b/validator-core/src/main/java/fr/ign/validator/io/ModelReaderFactory.java @@ -28,7 +28,9 @@ private ModelReaderFactory() { */ public static ModelReader createModelReader(URL url) { if (url.toString().endsWith(".xml")) { - throw new InvalidModelException("Fail to load "+url+" (XML model support has been removed, use JSON format)"); + throw new InvalidModelException( + "Fail to load " + url + " (XML model support has been removed, use JSON format)" + ); } else { return new JsonModelReader(); } diff --git a/validator-core/src/main/java/fr/ign/validator/model/AttributeTypeFactory.java b/validator-core/src/main/java/fr/ign/validator/model/AttributeTypeFactory.java index 44e96ae1..bb263131 100644 --- a/validator-core/src/main/java/fr/ign/validator/model/AttributeTypeFactory.java +++ b/validator-core/src/main/java/fr/ign/validator/model/AttributeTypeFactory.java @@ -10,7 +10,8 @@ * Prototype based factory providing AttributeType creation by name (Boolean, * Double, etc.) * - * @see src/main/resources/META-INF/services/fr.ign.validator.model.AttributeType containing the list of this types. + * @see src/main/resources/META-INF/services/fr.ign.validator.model.AttributeType + * containing the list of this types. * * @author MBorne * diff --git a/validator-core/src/test/java/fr/ign/validator/io/ModelReaderFactoryTest.java b/validator-core/src/test/java/fr/ign/validator/io/ModelReaderFactoryTest.java index 43cb00c7..50f59d61 100644 --- a/validator-core/src/test/java/fr/ign/validator/io/ModelReaderFactoryTest.java +++ b/validator-core/src/test/java/fr/ign/validator/io/ModelReaderFactoryTest.java @@ -19,12 +19,15 @@ public void testXml() throws MalformedURLException { RuntimeException thrown = null; try { ModelReaderFactory.createModelReader(url); - }catch(RuntimeException e){ + } catch (RuntimeException e) { thrown = e; } assertNotNull(thrown); assertTrue(thrown instanceof InvalidModelException); - assertEquals("Fail to load https://example.org/my-model.xml (XML model support has been removed, use JSON format)",thrown.getMessage()); + assertEquals( + "Fail to load https://example.org/my-model.xml (XML model support has been removed, use JSON format)", + thrown.getMessage() + ); } @Test diff --git a/validator-plugin-dgpr/src/test/java/fr/ign/validator/DgprApplicationTest.java b/validator-plugin-dgpr/src/test/java/fr/ign/validator/DgprApplicationTest.java index a952cbc0..3794febf 100644 --- a/validator-plugin-dgpr/src/test/java/fr/ign/validator/DgprApplicationTest.java +++ b/validator-plugin-dgpr/src/test/java/fr/ign/validator/DgprApplicationTest.java @@ -232,7 +232,6 @@ public void testDocumentNotOk() throws Exception { .getMessage() ); - Assert.assertEquals(5, report.getErrorsByCode(CoreErrorCodes.ATTRIBUTE_REFERENCE_NOT_FOUND).size()); { List errors = report.getErrorsByCode(CoreErrorCodes.ATTRIBUTE_REFERENCE_NOT_FOUND);