Search in sources :

Example 1 with TestREntity

use of org.redisson.RedissonLiveObjectServiceTest.TestREntity in project redisson by redisson.

the class SpringNamespaceObjectTest method startContext.

public static void startContext() {
    TestREntity entity = new TestREntity("live-object");
    entity.setValue("1");
    defaultRedisson.getLiveObjectService().merge(entity);
    entity = new TestREntity("live-object-ext");
    entity.setValue("1");
    defaultRedisson.getLiveObjectService().merge(entity);
    System.setProperty("redisAddress", RedisRunner.getDefaultRedisServerBindAddressAndPort());
    context = new ClassPathXmlApplicationContext("classpath:org/redisson/spring/support/redisson_objects.xml");
}
Also used : ClassPathXmlApplicationContext(org.springframework.context.support.ClassPathXmlApplicationContext) TestREntity(org.redisson.RedissonLiveObjectServiceTest.TestREntity)

Aggregations

TestREntity (org.redisson.RedissonLiveObjectServiceTest.TestREntity)1 ClassPathXmlApplicationContext (org.springframework.context.support.ClassPathXmlApplicationContext)1