Package org.jboss.jms.server.connectionfactory

Examples of org.jboss.jms.server.connectionfactory.JNDIBindings


   public void testParse_1() throws Exception
   {
      String s = "<bindings></bindings>";
      Element e = XMLUtil.stringToElement(s);

      JNDIBindings b = new JNDIBindings(e);

      assertTrue(b.getNames().isEmpty());
   }
View Full Code Here


   public void testParse_2() throws Exception
   {
      String s = "<bindings><somethingelse/><binding>java:/a/b/c/d/</binding></bindings>";
      Element e = XMLUtil.stringToElement(s);

      JNDIBindings b = new JNDIBindings(e);

      List names = b.getNames();

      assertEquals(1, names.size());
      assertEquals("java:/a/b/c/d/", (String)names.get(0));
   }
View Full Code Here

         "         <binding>c</binding>\n" +
         "      </bindings>";

      Element e = XMLUtil.stringToElement(s);

      JNDIBindings b = new JNDIBindings(e);

      List names = b.getNames();

      assertEquals(3, names.size());
      assertEquals("a", (String)names.get(0));
      assertEquals("b", (String)names.get(1));
      assertEquals("c", (String)names.get(2));
View Full Code Here

   public void testParse_1() throws Exception
   {
      String s = "<bindings></bindings>";
      Element e = XMLUtil.stringToElement(s);

      JNDIBindings b = new JNDIBindings(e);

      assertTrue(b.getNames().isEmpty());
   }
View Full Code Here

   public void testParse_2() throws Exception
   {
      String s = "<bindings><somethingelse/><binding>java:/a/b/c/d/</binding></bindings>";
      Element e = XMLUtil.stringToElement(s);

      JNDIBindings b = new JNDIBindings(e);

      List names = b.getNames();

      assertEquals(1, names.size());
      assertEquals("java:/a/b/c/d/", (String)names.get(0));
   }
View Full Code Here

         "         <binding>c</binding>\n" +
         "      </bindings>";

      Element e = XMLUtil.stringToElement(s);

      JNDIBindings b = new JNDIBindings(e);

      List names = b.getNames();

      assertEquals(3, names.size());
      assertEquals("a", (String)names.get(0));
      assertEquals("b", (String)names.get(1));
      assertEquals("c", (String)names.get(2));
View Full Code Here

TOP

Related Classes of org.jboss.jms.server.connectionfactory.JNDIBindings

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.