Skip to content

Commit d66655b

Browse files
committed
Rename test methods
1 parent 097d11f commit d66655b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

hackster-service-client/src/test/java/com/lohika/jclub/hackster/client/HacksterServiceClientTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ public class HacksterServiceClientTest {
3232
private HacksterServiceClient hacksterServiceClient;
3333

3434
@Test
35-
public void checkIfNewNumberIsNotHackster() {
35+
public void testIfNewNumberIsNotHackster() {
3636
boolean isHackster = hacksterServiceClient.isHackster("123123123");
3737

3838
assertThat(isHackster, equalTo(false));
3939
}
4040

4141
@Test
42-
public void checkIfOldNumberIsNotHackster() {
42+
public void testIfNumberBecomeAHackster() {
4343
boolean isHacksterFalse = hacksterServiceClient.isHackster("321321312");
4444

4545
for (int i = 0; i < 5; i++) {

hackster-service/src/test/java/com/lohika/jclub/HacksterServiceApplicationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ public class HacksterServiceApplicationTests {
2525
private MockMvc mockMvc;
2626

2727
@Test
28-
public void checkIfNewPhoneNumberIsNotHakster() throws Exception {
28+
public void testIfNewPhoneNumberIsNotHakster() throws Exception {
2929
mockMvc.perform(get("/hackster/123123123"))
3030
.andDo(MockMvcResultHandlers.print())
3131
.andExpect(status().isOk())
3232
.andExpect(content().string("false"));
3333
}
3434

3535
@Test
36-
public void checkIfOldPhoneNumberIsNotHakster() throws Exception {
36+
public void testIfPhoneNumberBecomeAHakster() throws Exception {
3737
mockMvc.perform(get("/hackster/321321"))
3838
.andDo(MockMvcResultHandlers.print())
3939
.andExpect(status().isOk())

0 commit comments

Comments
 (0)