Package com.alvazan.test.db

Examples of com.alvazan.test.db.NonVirtSub1


  @Test
  public void testAllRowsPolymorphic() {
    if (FactorySingleton.getServerType() != DbTypeEnum.CASSANDRA)
      return;

    NonVirtSub1 s1 = new NonVirtSub1();
    s1.setName("dean");
    NonVirtSub2 s2 = new NonVirtSub2();
    s2.setNum(5);
 
    mgr.put(s1);
    mgr.put(s2);
View Full Code Here


  }
 
  @Test
  public void testInheritanceWithCassandraFindAll() {

    NonVirtSub1 s1 = new NonVirtSub1();
    s1.setName("dean");
    NonVirtSub2 s2 = new NonVirtSub2();
    s2.setNum(5);
 
    mgr.put(s1);
    mgr.put(s2);
   
    mgr.flush();
   
    Cursor<KeyValue<NonVirtSub1>> cursor = NonVirtSub1.findAll(mgr);
    while(cursor.next()) {
      KeyValue<NonVirtSub1> kv = cursor.getCurrent();
      NonVirtSub1 sub = kv.getValue();
      Assert.assertEquals(s1.getName(), s1.getName());
    }
  }
View Full Code Here

TOP

Related Classes of com.alvazan.test.db.NonVirtSub1

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.