Skip to content

Commit

Permalink
Refactor test classes and package naming
Browse files Browse the repository at this point in the history
Aim is to express previously implemented end-to-end test upgrade.
  • Loading branch information
ibardos committed Dec 6, 2023
1 parent 1057f00 commit 53745c2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import org.springframework.context.ApplicationContext;

@SpringBootTest
class MotoShopApplicationTests {
class MotoShopApplicationGeneralTests {
@Autowired
ApplicationContext applicationContext;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.ibardos.motoShop.controller;
package com.ibardos.motoShop.endToendTests.apiTests;

import org.junit.jupiter.api.*;

Expand Down Expand Up @@ -27,7 +27,7 @@
@Sql(scripts = "/schema.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD)
@Sql(scripts = "/data.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD)
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
public class ManufacturerControllerTest {
public class ManufacturerControllerApiTests {
@LocalServerPort
private int port;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.ibardos.motoShop.controller;
package com.ibardos.motoShop.endToendTests.apiTests;

import org.junit.jupiter.api.*;

Expand Down Expand Up @@ -27,7 +27,7 @@
@Sql(scripts = "/schema.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD)
@Sql(scripts = "/data.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD)
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
public class MotorcycleModelControllerTest {
public class MotorcycleModelControllerApiTests {
@LocalServerPort
private int port;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.ibardos.motoShop.controller;
package com.ibardos.motoShop.endToendTests.apiTests;

import org.junit.jupiter.api.*;

Expand Down Expand Up @@ -27,7 +27,7 @@
@Sql(scripts = "/schema.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD)
@Sql(scripts = "/data.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD)
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
public class MotorcycleStockControllerTest {
public class MotorcycleStockControllerApiTests {
@LocalServerPort
private int port;

Expand Down

0 comments on commit 53745c2

Please sign in to comment.