Package mungbean

Examples of mungbean.TestObject


            context.dbAdmin().dropDatabase();
        }

        public void objectWithoutIdCanBeStoredAndRetrieved() {
            DBCollection<TestObject> collection = context.openCollection("foo", TestObject.class);
            collection.save(new TestObject("foo", 123));
            List<TestObject> objs = collection.query(new Query().field("name").is("foo"));
            specify(objs.size(), does.equal(1));
            specify(objs.get(0).name(), does.equal("foo"));
        }
View Full Code Here

TOP

Related Classes of mungbean.TestObject

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.