コード例 #1
0
  @Test
  public void testCreateConnectionwithCredentials() throws Exception {
    final String username = "******";
    final String password = "******";

    Connection conn = jms2ConnectionFactory.createConnection(username, password);
    assertNotNull(conn);
    assertEquals(Jms2Connection.class, conn.getClass());
  }
コード例 #2
0
 @Test
 public void testCreateConnection() throws Exception {
   Connection conn = jms2ConnectionFactory.createConnection();
   assertNotNull(conn);
   assertEquals(Jms2Connection.class, conn.getClass());
 }