Examples of btaddattribute()


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

    log.info("test_nested_buffer");
    server.tpadvertiseTestNBF();
   
    try {
      BT_NBF buffer = (BT_NBF) connection.tpalloc("BT_NBF", "employee", 0);
      assertTrue(buffer.btaddattribute("name", "zhfeng"));
      assertTrue(buffer.btaddattribute("id", new Long(1001)));
     
      Response resp = connection.tpcall(RunServer.getServiceNameNBF(), buffer, 0);
      assertTrue(resp != null);
     
View Full Code Here

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

    server.tpadvertiseTestNBF();
   
    try {
      BT_NBF buffer = (BT_NBF) connection.tpalloc("BT_NBF", "employee", 0);
      assertTrue(buffer.btaddattribute("name", "zhfeng"));
      assertTrue(buffer.btaddattribute("id", new Long(1001)));
     
      Response resp = connection.tpcall(RunServer.getServiceNameNBF(), buffer, 0);
      assertTrue(resp != null);
     
      BT_NBF rcvbuf = (BT_NBF)resp.getBuffer();
View Full Code Here

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

  }
 
  public void test() throws ConnectionException {
    log.info("TestNestedBuffer::test");
    BT_NBF buffer = (BT_NBF) connection.tpalloc("BT_NBF", "employee", 0);
    assertFalse(buffer.btaddattribute("id", new Integer(1001)));
    assertTrue(buffer.btaddattribute("name", "zhfeng"));
    assertTrue(buffer.btaddattribute("id", new Long(1001)));
   
    //log.info(new String(buffer.serialize()));
   
View Full Code Here

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

 
  public void test() throws ConnectionException {
    log.info("TestNestedBuffer::test");
    BT_NBF buffer = (BT_NBF) connection.tpalloc("BT_NBF", "employee", 0);
    assertFalse(buffer.btaddattribute("id", new Integer(1001)));
    assertTrue(buffer.btaddattribute("name", "zhfeng"));
    assertTrue(buffer.btaddattribute("id", new Long(1001)));
   
    //log.info(new String(buffer.serialize()));
   
    Object obj = buffer.btgetattribute("id", 0);
View Full Code Here

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

  public void test() throws ConnectionException {
    log.info("TestNestedBuffer::test");
    BT_NBF buffer = (BT_NBF) connection.tpalloc("BT_NBF", "employee", 0);
    assertFalse(buffer.btaddattribute("id", new Integer(1001)));
    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()));
View Full Code Here

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

    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));
    //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;
View Full Code Here

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

  }
 
  public void testDel() throws ConnectionException {
    log.info("TestNestedBuffer::testDel");
    BT_NBF buffer = (BT_NBF) connection.tpalloc("BT_NBF", "employee", 0);
    buffer.btaddattribute("id", new Long(1234));
    buffer.btaddattribute("id", new Long(1001));
    buffer.btaddattribute("id", new Long(1001));
   
    assertTrue(buffer.btdelattribute("id", 1));
    log.info("delete attribute id at index 1");
View Full Code Here

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

 
  public void testDel() throws ConnectionException {
    log.info("TestNestedBuffer::testDel");
    BT_NBF buffer = (BT_NBF) connection.tpalloc("BT_NBF", "employee", 0);
    buffer.btaddattribute("id", new Long(1234));
    buffer.btaddattribute("id", new Long(1001));
    buffer.btaddattribute("id", new Long(1001));
   
    assertTrue(buffer.btdelattribute("id", 1));
    log.info("delete attribute id at index 1");
   
View Full Code Here

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

  public void testDel() throws ConnectionException {
    log.info("TestNestedBuffer::testDel");
    BT_NBF buffer = (BT_NBF) connection.tpalloc("BT_NBF", "employee", 0);
    buffer.btaddattribute("id", new Long(1234));
    buffer.btaddattribute("id", new Long(1001));
    buffer.btaddattribute("id", new Long(1001));
   
    assertTrue(buffer.btdelattribute("id", 1));
    log.info("delete attribute id at index 1");
   
    assertFalse(buffer.btdelattribute("id", 1));
View Full Code Here

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

    assertTrue(buffer.btgetattribute("id", 1) == null);
   
    id = (Long)buffer.btgetattribute("id", 2);
    assertTrue(id.longValue() == 1001);
   
    buffer.btaddattribute("name", "test");
    assertTrue(buffer.btdelattribute("name", 0));
    log.info("delete attribute name at index 0");
   
    String name = (String)buffer.btgetattribute("name", 0);
    assertTrue(name == null);
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.