Package org.jboss.narayana.blacktie.jatmibroker.nbf

Examples of org.jboss.narayana.blacktie.jatmibroker.nbf.NBFSchemaParser


public class TestNBFSchemaParser extends TestCase {
  private static final Logger log = LogManager.getLogger(TestNBFSchemaParser.class);
 
  public void test() {
    log.info("TestNBFSchemaParser:test");
    NBFSchemaParser parser = new NBFSchemaParser();
    Map<String, String> flds;
   
    assertTrue(parser.parse("buffers/test.xsd"));
    assertTrue("test".equals(parser.getBufferName()));
    flds = parser.getFileds();
    assertTrue(flds.size() == 1);
    for(Entry<String, String> entry : flds.entrySet()) {
      log.info(entry.getKey() + " : " + entry.getValue());
    }
   
    assertTrue(parser.parse("buffers/employee.xsd"));
    assertTrue("employee".equals(parser.getBufferName()));
    flds = parser.getFileds();
    for(Entry<String, String> entry : flds.entrySet()) {
      log.info(entry.getKey() + " : " + entry.getValue());
    }
    assertTrue(flds.size() == 2);
  }
View Full Code Here

TOP

Related Classes of org.jboss.narayana.blacktie.jatmibroker.nbf.NBFSchemaParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.