Examples of btgetattribute()


Examples of org.jboss.narayana.blacktie.jatmibroker.xatmi.BT_NBF.btgetattribute()

      assertTrue(resp != null);
     
      BT_NBF rcvbuf = (BT_NBF)resp.getBuffer();
      assertTrue(rcvbuf != null);
      log.info(rcvbuf);
      Long id = (Long)rcvbuf.btgetattribute("id", 0);
      assertTrue(id.longValue() == 1234);
      String name = (String)rcvbuf.btgetattribute("name", 0);
      assertTrue(name == null);
    } catch (ConnectionException e) {
      log.warn("call service faild with " + e);
View Full Code Here

Examples of org.jboss.narayana.blacktie.jatmibroker.xatmi.BT_NBF.btgetattribute()

      BT_NBF rcvbuf = (BT_NBF)resp.getBuffer();
      assertTrue(rcvbuf != null);
      log.info(rcvbuf);
      Long id = (Long)rcvbuf.btgetattribute("id", 0);
      assertTrue(id.longValue() == 1234);
      String name = (String)rcvbuf.btgetattribute("name", 0);
      assertTrue(name == null);
    } catch (ConnectionException e) {
      log.warn("call service faild with " + e);
      throw e;
    }
View Full Code Here

Examples of org.jboss.narayana.blacktie.jatmibroker.xatmi.BT_NBF.btgetattribute()

    assertTrue(buffer.btaddattribute("name", "zhfeng"));
    assertTrue(buffer.btaddattribute("id", new Long(1001)));
   
    //log.info(new String(buffer.serialize()));
   
    Object obj = buffer.btgetattribute("id", 0);
    assertTrue("java.lang.Long".equals(obj.getClass().getName()));
    assertTrue(((Long)obj).longValue() == 1001);
   
    obj = buffer.btgetattribute("id", 1);
    assertTrue(obj == null);
View Full Code Here

Examples of org.jboss.narayana.blacktie.jatmibroker.xatmi.BT_NBF.btgetattribute()

   
    Object obj = buffer.btgetattribute("id", 0);
    assertTrue("java.lang.Long".equals(obj.getClass().getName()));
    assertTrue(((Long)obj).longValue() == 1001);
   
    obj = buffer.btgetattribute("id", 1);
    assertTrue(obj == null);
   
    obj = buffer.btgetattribute("name", 0);
    assertTrue("java.lang.String".equals(obj.getClass().getName()));
    assertTrue("zhfeng".equals((String)(obj)));
View Full Code Here

Examples of org.jboss.narayana.blacktie.jatmibroker.xatmi.BT_NBF.btgetattribute()

    assertTrue(((Long)obj).longValue() == 1001);
   
    obj = buffer.btgetattribute("id", 1);
    assertTrue(obj == null);
   
    obj = buffer.btgetattribute("name", 0);
    assertTrue("java.lang.String".equals(obj.getClass().getName()));
    assertTrue("zhfeng".equals((String)(obj)));
   
    BT_NBF test = (BT_NBF) connection.tpalloc("BT_NBF", "test", 0);
    assertTrue(test.btaddattribute("employee", buffer));
View Full Code Here

Examples of org.jboss.narayana.blacktie.jatmibroker.xatmi.BT_NBF.btgetattribute()

   
    BT_NBF test = (BT_NBF) connection.tpalloc("BT_NBF", "test", 0);
    assertTrue(test.btaddattribute("employee", buffer));
    //log.info(new String(test.serialize()));
   
    obj = test.btgetattribute("employee", 0);
    assertTrue("org.jboss.narayana.blacktie.jatmibroker.xatmi.BT_NBF".equals(obj.getClass().getName()));
    BT_NBF employee = (BT_NBF)obj;
    String name = (String)employee.btgetattribute("name", 0);
    assertTrue("zhfeng".equals(name));
    Long id = (Long)employee.btgetattribute("id", 0);
View Full Code Here

Examples of org.jboss.narayana.blacktie.jatmibroker.xatmi.BT_NBF.btgetattribute()

    //log.info(new String(test.serialize()));
   
    obj = test.btgetattribute("employee", 0);
    assertTrue("org.jboss.narayana.blacktie.jatmibroker.xatmi.BT_NBF".equals(obj.getClass().getName()));
    BT_NBF employee = (BT_NBF)obj;
    String name = (String)employee.btgetattribute("name", 0);
    assertTrue("zhfeng".equals(name));
    Long id = (Long)employee.btgetattribute("id", 0);
    assertTrue(id.longValue() == 1001);
  }
 
View Full Code Here

Examples of org.jboss.narayana.blacktie.jatmibroker.xatmi.BT_NBF.btgetattribute()

    obj = test.btgetattribute("employee", 0);
    assertTrue("org.jboss.narayana.blacktie.jatmibroker.xatmi.BT_NBF".equals(obj.getClass().getName()));
    BT_NBF employee = (BT_NBF)obj;
    String name = (String)employee.btgetattribute("name", 0);
    assertTrue("zhfeng".equals(name));
    Long id = (Long)employee.btgetattribute("id", 0);
    assertTrue(id.longValue() == 1001);
  }
 
  public void testDel() throws ConnectionException {
    log.info("TestNestedBuffer::testDel");
View Full Code Here

Examples of org.jboss.narayana.blacktie.jatmibroker.xatmi.BT_NBF.btgetattribute()

    log.info("delete attribute id at index 1");
   
    assertFalse(buffer.btdelattribute("id", 1));
    log.info("double delete id failed");
   
    Long id = (Long)buffer.btgetattribute("id", 0)
    assertTrue(id.longValue() == 1234);
   
    assertTrue(buffer.btgetattribute("id", 1) == null);
   
    id = (Long)buffer.btgetattribute("id", 2);
View Full Code Here

Examples of org.jboss.narayana.blacktie.jatmibroker.xatmi.BT_NBF.btgetattribute()

    log.info("double delete id failed");
   
    Long id = (Long)buffer.btgetattribute("id", 0)
    assertTrue(id.longValue() == 1234);
   
    assertTrue(buffer.btgetattribute("id", 1) == null);
   
    id = (Long)buffer.btgetattribute("id", 2);
    assertTrue(id.longValue() == 1001);
   
    buffer.btaddattribute("name", "test");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.