Skip to content

Commit

Permalink
loaders(quarkus): consistent test class naming
Browse files Browse the repository at this point in the history
  • Loading branch information
lburgazzoli committed Aug 19, 2020
1 parent 54d45ea commit bc124ee
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
import io.quarkus.test.junit.NativeImageTest;

@NativeImageTest
public class ExtensionIT extends ExtensionTest {
public class CoreIT extends CoreTest {
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import static org.hamcrest.Matchers.is;

@QuarkusTest
public class ExtensionTest {
public class CoreTest {
@Test
public void testServices() {
JsonPath p = RestAssured.given()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
import io.quarkus.test.junit.NativeImageTest;

@NativeImageTest
public class ExtensionIT extends ExtensionTest {
public class CronIT extends CronTest {
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import static org.hamcrest.Matchers.is;

@QuarkusTest
public class ExtensionTest {
public class CronTest {
@Test
public void cronInterceptorIsRegistered() throws IOException {
when()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
import io.quarkus.test.junit.NativeImageTest;

@NativeImageTest
public class ExtensionIT extends ExtensionTest {
public class KnativeIT extends KnativeTest {
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import static org.assertj.core.api.Assertions.assertThat;

@QuarkusTest
public class ExtensionTest {
public class KnativeTest {
@Test
public void inspect() throws IOException {
JsonPath p = RestAssured.given()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@

@DisabledOnNativeImage
@QuarkusTest
public class ExtensionTest {
public class GroovyLoaderTest {
@Test
public void testLoadRoutes() throws IOException {
String code;

try (InputStream is = ExtensionTest.class.getResourceAsStream("/routes.groovy")) {
try (InputStream is = GroovyLoaderTest.class.getResourceAsStream("/routes.groovy")) {
code = IOHelper.loadText(is);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@

@DisabledOnNativeImage
@QuarkusTest
public class ExtensionTest {
public class JavaLoaderTest {
@Test
public void testLoadRoutes() throws IOException {
String code;

try (InputStream is = ExtensionTest.class.getResourceAsStream("/MyRoutes.java")) {
try (InputStream is = JavaLoaderTest.class.getResourceAsStream("/MyRoutes.java")) {
code = IOHelper.loadText(is);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
import io.quarkus.test.junit.NativeImageTest;

@NativeImageTest
public class ExtensionIT extends ExtensionTest {
public class JavaScriptLoaderIT extends JavaScriptLoaderTest {
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
import static org.assertj.core.api.Assertions.assertThat;

@QuarkusTest
public class ExtensionTest {
public class JavaScriptLoaderTest {
@Test
public void testLoadRoutes() throws IOException {
String code;

try (InputStream is = ExtensionTest.class.getResourceAsStream("/routes.js")) {
try (InputStream is = JavaScriptLoaderTest.class.getResourceAsStream("/routes.js")) {
code = IOHelper.loadText(is);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
import io.quarkus.test.junit.NativeImageTest;

@NativeImageTest
public class ExtensionIT extends ExtensionTest {
public class XmlLoaderIT extends XmlLoaderTest {
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
import static org.assertj.core.api.Assertions.assertThat;

@QuarkusTest
public class ExtensionTest {
public class XmlLoaderTest {
@Test
public void testLoadRoutes() throws IOException {
String code;

try (InputStream is = ExtensionTest.class.getResourceAsStream("/routes.xml")) {
try (InputStream is = XmlLoaderTest.class.getResourceAsStream("/routes.xml")) {
code = IOHelper.loadText(is);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
import io.quarkus.test.junit.NativeImageTest;

@NativeImageTest
public class ExtensionIT extends ExtensionTest {
public class YamlLoaderIT extends YamlLoaderTest {
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
import static org.assertj.core.api.Assertions.assertThat;

@QuarkusTest
public class ExtensionTest {
public class YamlLoaderTest {
@Test
public void testLoadRoutes() throws IOException {
String code;

try (InputStream is = ExtensionTest.class.getResourceAsStream("/routes.yaml")) {
try (InputStream is = YamlLoaderTest.class.getResourceAsStream("/routes.yaml")) {
code = IOHelper.loadText(is);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
import io.quarkus.test.junit.NativeImageTest;

@NativeImageTest
public class ExtensionIT extends ExtensionTest {
public class PolyglotIT extends PolyglotTest {
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
import static org.assertj.core.api.Assertions.assertThat;

@QuarkusTest
public class ExtensionTest {
public class PolyglotTest {
@ParameterizedTest
@ValueSource(strings = { "yaml", "xml" })
public void loadRoute(String loaderName) throws IOException {
final byte[] code;

try (InputStream is = ExtensionTest.class.getResourceAsStream("/routes." + loaderName)) {
try (InputStream is = PolyglotTest.class.getResourceAsStream("/routes." + loaderName)) {
code = is.readAllBytes();
}

Expand Down

0 comments on commit bc124ee

Please sign in to comment.