@Test public void testGetOption1() throws SchemagenOptionsConfigurationException { SchemagenOptions so0 = new SchemagenOptions(); SchemagenOptions so1 = new SchemagenOptions(); so0.setParent(so1); assertNull(so0.getOption(OPT.CLASS_SECTION)); }
@Test public void testGetOption4() throws SchemagenOptionsConfigurationException { SchemagenOptions so0 = new SchemagenOptions(); SchemagenOptions so1 = new SchemagenOptions(); so0.setParent(so1); so1.setOption(OPT.CLASS_SECTION, "test123"); assertEquals("test123", so0.getOption(OPT.CLASS_SECTION).asLiteral().getString()); }
/** * Test method for {@link SchemagenOptions#setOption(java.lang.String, java.lang.String)}. * * @throws SchemagenOptionsConfigurationException */ @Test public void testSetOptionStringString() throws SchemagenOptionsConfigurationException { SchemagenOptions so0 = new SchemagenOptions(); so0.setOption("CLASS_SECTION", "test123"); assertEquals("test123", so0.getOption(OPT.CLASS_SECTION).asLiteral().getString()); }