Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rename LITests to NGTests

  • Loading branch information...
commit 61f8be9a40510613d7876254d9a232f7cbd249e7 1 parent f13a79d
jto authored
View
14 README.md
@@ -26,7 +26,7 @@ val appDependencies = Seq(
)
```
-***Test classes must extend LITests to use the helpers.***
+***Test classes must extend NGTests to use the helpers.***
### Annotations
@@ -49,7 +49,7 @@ When it's used on a class, a FakeApplication will be started at the beginning of
```java
@WithFakeApplication
-public class AllWithFakeApp extends LITests {
+public class AllWithFakeApp extends NGTests {
@Test
public void aFastTest() {
String f = play.Play.application().configuration().getString("test.loutre");
@@ -62,7 +62,7 @@ public class AllWithFakeApp extends LITests {
Or
```java
-public class SimpleTest extends LITests {
+public class SimpleTest extends NGTests {
@Test
@WithFakeApplication
public void aFailingTest() {
@@ -78,7 +78,7 @@ public class SimpleTest extends LITests {
You can change the application configuration for testing purpose using the `@Conf` annotation:
```java
-public class SimpleTest extends LITests {
+public class SimpleTest extends NGTests {
@Test
public void aFastTest() {
@@ -98,7 +98,7 @@ public class SimpleTest extends LITests {
Alternatively, if you need to change multiple configuration entries, you can wrap those `@Conf` into a `@Confs`:
```java
-public class SimpleTest extends LITests {
+public class SimpleTest extends NGTests {
@Test
public void aFastTest() {
@@ -124,7 +124,7 @@ The `@Conf` and `@Confs` annotation also work on test Classes. When used on clas
```java
@WithFakeApplication
@Conf(key="test.fakeconf", value="fake")
-public class AllWithFakeApp extends LITests {
+public class AllWithFakeApp extends NGTests {
@Test
public void anotherFastTest() {
String f = play.Play.application().configuration().getString("test.fakeconf");
@@ -142,7 +142,7 @@ Declaration on classes and methods can be mixed:
@Conf(key="test.fakeconf", value="fake"),
@Conf(key="test.anotherConf", value="fake")
})
-public class AllWithFakeApp extends LITests {
+public class AllWithFakeApp extends NGTests {
@Test
public void testAnotherConf() {
View
2  ...ain/java/com/linkedin/plugin/LITests.java → ...ain/java/com/linkedin/plugin/NGTests.java
@@ -21,7 +21,7 @@
import play.test.*;
import static play.test.Helpers.*;
-public class LITests implements IHookable{
+public class NGTests implements IHookable{
private Method testMethod(ITestResult testResult){
return testResult.getMethod().getConstructorOrMethod().getMethod();
View
2  sample/test/AllWithFakeApp.java
@@ -14,7 +14,7 @@
})
@Conf(key="test.anotherConf", value="fake")
@WithPlugins({"plugins.DummyPlugin"})
-public class AllWithFakeApp extends LITests {
+public class AllWithFakeApp extends NGTests {
@Test
@Confs({
View
2  sample/test/SimpleTest.java
@@ -8,7 +8,7 @@
import com.linkedin.plugin.*;
-public class SimpleTest extends LITests {
+public class SimpleTest extends NGTests {
@Test
public void aFastTest() {
Please sign in to comment.
Something went wrong with that request. Please try again.