THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
public class LibraryTest { @Rule public GfshRule gfshRule = new GfshRule(); @Test public void testSomeLibraryMethod() { Library classUnderTest = new Library(); GfshScript.of("start locator --name=loc", "start server --name=serv1", "create region --name=test --type=REPLICATE").execute(gfshRule); classUnderTest.doPut(); assertEquals("one", classUnderTest.doGet()); } } |
While running this test, a locator and a server JVM will be spun-up by GfshRule.
Step-by-step guide
You need to follow the following steps to get this to work:
...