1908190919101911191219131914191519161917
* The element attributes */ private void enterLibraryGeometries(final Attributes attributes) { this.geometryLibrary = new GeometryLibrary(); this.geometryLibrary.setName(attributes.getValue("name")); this.geometryLibrary.setId(attributes.getValue("id")); enterElement(ParserMode.LIBRARY_GEOMETRIES); }
28293031323334353637
*/ @Test public void testConstructor() { final GeometryLibrary lib = new GeometryLibrary(); assertNull(lib.getName()); assertNull(lib.getAsset()); assertEquals(0, lib.getGeometries().size()); }
424344454647484950515253
*/ @Test public void testAsset() { final GeometryLibrary lib = new GeometryLibrary(); assertNull(lib.getAsset()); lib.setAsset(new Asset()); assertNotNull(lib.getAsset()); lib.setAsset(null); assertNull(lib.getAsset()); }
585960616263646566676869
*/ @Test public void testId() { final GeometryLibrary lib = new GeometryLibrary(); assertNull(lib.getId()); lib.setId("foo"); assertEquals("foo", lib.getId()); lib.setId(null); assertNull(lib.getId()); }
747576777879808182838485
*/ @Test public void testName() { final GeometryLibrary lib = new GeometryLibrary(); assertNull(lib.getName()); lib.setName("foo"); assertEquals("foo", lib.getName()); lib.setName(null); assertNull(lib.getName()); }