Esempio n. 1
0
 @Test
 public void testGetOption1() throws SchemagenOptionsConfigurationException {
   SchemagenOptions so0 = new SchemagenOptions();
   SchemagenOptions so1 = new SchemagenOptions();
   so0.setParent(so1);
   assertNull(so0.getOption(OPT.CLASS_SECTION));
 }
Esempio n. 2
0
 @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());
 }
Esempio n. 3
0
 /**
  * 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());
 }