I hereby claim:
- I am cexbrayat on github.
- I am cexbrayat (https://keybase.io/cexbrayat) on keybase.
- I have a public key whose fingerprint is 2FE5 4D6B 6141 6BC3 0539 E6BC ADA5 BF0D D06C 7207
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import models.App; | |
import org.junit.Test; | |
import java.util.List; | |
public class AppMongoTest extends MongoTest { | |
@Test | |
public void saveNewApp() { | |
App app = new App(); | |
app.name = "camel-ref"; |
public class MongoPlayJUnitRunner extends PlayJUnitRunner { | |
static int PORT = 27017; | |
static { | |
try { | |
MongodConfig config = new MongodConfig(Version.V2_0, PORT, Network.localhostIsIPv6()); | |
MongodExecutable prepared = MongoDBRuntime.getDefaultInstance().prepare(config); | |
prepared.start(); | |
new Mongo("localhost", PORT); |
@RunWith(MongoPlayJUnitRunner.class) | |
public class MongoTest extends org.junit.Assert { | |
@Rule | |
public PlayJUnitRunner.StartPlay startPlayBeforeTests = PlayJUnitRunner.StartPlay.rule(); | |
} |
import models.App; | |
import org.junit.Test; | |
import play.test.UnitTest; | |
import java.util.List; | |
public class AppTest extends UnitTest { | |
@Test | |
public void saveNewApp() { | |
App app = new App(); |
@Entity | |
public class App extends Model { | |
public String name; | |
} |