Review Build time (#16444)
This commit is contained in:
parent
979f4ffb2c
commit
8b62a51599
|
@ -8,7 +8,7 @@ import org.junit.jupiter.api.Test;
|
||||||
import org.optaplanner.core.api.solver.Solver;
|
import org.optaplanner.core.api.solver.Solver;
|
||||||
import org.optaplanner.core.api.solver.SolverFactory;
|
import org.optaplanner.core.api.solver.SolverFactory;
|
||||||
|
|
||||||
public class OptaPlannerUnitTest {
|
public class OptaPlannerLongRunningUnitTest {
|
||||||
|
|
||||||
static CourseSchedule unsolvedCourseSchedule;
|
static CourseSchedule unsolvedCourseSchedule;
|
||||||
|
|
|
@ -13,7 +13,7 @@ import javax.imageio.ImageIO;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
public class Graphics2DExampleUnitTest {
|
public class Graphics2DExampleIntegrationTest {
|
||||||
|
|
||||||
@Test(expected = Test.None.class)
|
@Test(expected = Test.None.class)
|
||||||
public void whenOriginalImageExistsAndTargetSizesAreNotZero_thenImageGeneratedWithoutError() throws IOException {
|
public void whenOriginalImageExistsAndTargetSizesAreNotZero_thenImageGeneratedWithoutError() throws IOException {
|
|
@ -13,7 +13,7 @@ import javax.imageio.ImageIO;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
public class ImageScaledInstanceExampleUnitTest {
|
public class ImageScaledInstanceExampleIntegrationTest {
|
||||||
|
|
||||||
@Test(expected = Test.None.class)
|
@Test(expected = Test.None.class)
|
||||||
public void whenOriginalImageExistsAndTargetSizesAreNotZero_thenImageGeneratedWithoutError() throws IOException {
|
public void whenOriginalImageExistsAndTargetSizesAreNotZero_thenImageGeneratedWithoutError() throws IOException {
|
|
@ -13,10 +13,10 @@ import java.io.IOException;
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
import static org.junit.Assert.assertNotNull;
|
import static org.junit.Assert.assertNotNull;
|
||||||
|
|
||||||
public class ImageToBufferedImageUnitTest {
|
public class ImageToBufferedImageIntegrationTest {
|
||||||
Image image = ImageIO.read(new File("src/main/resources/images/sampleImage.jpg"));
|
Image image = ImageIO.read(new File("src/main/resources/images/sampleImage.jpg"));
|
||||||
|
|
||||||
public ImageToBufferedImageUnitTest() throws IOException {
|
public ImageToBufferedImageIntegrationTest() throws IOException {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
|
@ -13,7 +13,7 @@ import javax.imageio.ImageIO;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
public class ImgscalrExampleUnitTest {
|
public class ImgscalrExampleIntegrationTest {
|
||||||
|
|
||||||
@Test(expected = Test.None.class)
|
@Test(expected = Test.None.class)
|
||||||
public void whenOriginalImageExistsAndTargetSizesAreNotZero_thenImageGeneratedWithoutError() throws IOException {
|
public void whenOriginalImageExistsAndTargetSizesAreNotZero_thenImageGeneratedWithoutError() throws IOException {
|
|
@ -13,7 +13,7 @@ import javax.imageio.ImageIO;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
public class MarvinExampleUnitTest {
|
public class MarvinExampleIntegrationTest {
|
||||||
@Test(expected = Test.None.class)
|
@Test(expected = Test.None.class)
|
||||||
public void whenOriginalImageExistsAndTargetSizesAreNotZero_thenImageGeneratedWithoutError() throws IOException {
|
public void whenOriginalImageExistsAndTargetSizesAreNotZero_thenImageGeneratedWithoutError() throws IOException {
|
||||||
int targetWidth = 200;
|
int targetWidth = 200;
|
|
@ -13,7 +13,7 @@ import javax.imageio.ImageIO;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
public class ThumbnailatorExampleUnitTest {
|
public class ThumbnailatorExampleIntegrationTest {
|
||||||
@Test(expected = Test.None.class)
|
@Test(expected = Test.None.class)
|
||||||
public void whenOriginalImageExistsAndTargetSizesAreNotZero_thenImageGeneratedWithoutError() throws IOException {
|
public void whenOriginalImageExistsAndTargetSizesAreNotZero_thenImageGeneratedWithoutError() throws IOException {
|
||||||
int targetWidth = 200;
|
int targetWidth = 200;
|
|
@ -11,7 +11,7 @@ import io.javaoperatorsdk.operator.springboot.starter.test.EnableMockOperator;
|
||||||
|
|
||||||
@SpringBootTest
|
@SpringBootTest
|
||||||
@EnableMockOperator(crdPaths = "classpath:META-INF/fabric8/deptrackresources.com.baeldung-v1.yml")
|
@EnableMockOperator(crdPaths = "classpath:META-INF/fabric8/deptrackresources.com.baeldung-v1.yml")
|
||||||
class ApplicationUnitTest {
|
class ApplicationLongRunningUnitTest {
|
||||||
@Autowired
|
@Autowired
|
||||||
KubernetesClient client;
|
KubernetesClient client;
|
||||||
@Test
|
@Test
|
|
@ -7,7 +7,7 @@ import static io.restassured.RestAssured.given;
|
||||||
import static org.hamcrest.CoreMatchers.is;
|
import static org.hamcrest.CoreMatchers.is;
|
||||||
|
|
||||||
@QuarkusTest
|
@QuarkusTest
|
||||||
public class HelloResourceUnitTest {
|
public class HelloResourceLongRunningUnitTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testHelloEndpoint() {
|
public void testHelloEndpoint() {
|
|
@ -6,7 +6,7 @@ import io.quarkus.test.junit.QuarkusIntegrationTest;
|
||||||
|
|
||||||
@QuarkusIntegrationTest
|
@QuarkusIntegrationTest
|
||||||
@QuarkusTestResource(H2DatabaseTestResource.class)
|
@QuarkusTestResource(H2DatabaseTestResource.class)
|
||||||
public class NativeHelloResourceIT extends HelloResourceUnitTest {
|
public class NativeHelloResourceIT extends HelloResourceLongRunningUnitTest {
|
||||||
|
|
||||||
// Execute the same tests but in native mode.
|
// Execute the same tests but in native mode.
|
||||||
}
|
}
|
|
@ -14,7 +14,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
import static org.mockito.Mockito.when;
|
import static org.mockito.Mockito.when;
|
||||||
|
|
||||||
@QuarkusTest
|
@QuarkusTest
|
||||||
class LibraryServiceInjectMockUnitTest {
|
class LibraryServiceInjectMockLongRunningUnitTest {
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
LibraryService libraryService;
|
LibraryService libraryService;
|
|
@ -15,7 +15,7 @@ import java.util.Arrays;
|
||||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
|
||||||
@QuarkusTest
|
@QuarkusTest
|
||||||
class LibraryServiceQuarkusMockUnitTest {
|
class LibraryServiceQuarkusMockLongRunningUnitTest {
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
LibraryService libraryService;
|
LibraryService libraryService;
|
Loading…
Reference in New Issue