Skip to content

Commit

Permalink
Fix test function names
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentTreguier committed Jul 19, 2024
1 parent 6648ac7 commit e8a431f
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void createPost() {
}

@Test
public void createPostWhileWhileUnauthenticated() {
public void createPostWhileUnauthenticated() {
final var postCount = Post.count("author.username = 'user_0'");
given().post().then().statusCode(401);
assertEquals(postCount, Post.count());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ public void deleteOtherDraft() {
}

@Test
public void deletePostWhileWhileUnauthenticated() {
public void deletePostWhileUnauthenticated() {
given().delete(post.id.toString()).then().statusCode(401);
assertEquals(1, Post.count("id", post.id));
}

@Test
public void deleteDraftWhileWhileUnauthenticated() {
public void deleteDraftWhileUnauthenticated() {
given().delete(draft.id.toString()).then().statusCode(401);
assertEquals(1, Post.count("id", draft.id));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public void getOtherAnonymousPostWhenBlocked() {
}

@Test
public void getPostWhileWhileUnauthenticated() {
public void getPostWhileUnauthenticated() {
given().get(post.id.toString())
.then()
.statusCode(200)
Expand All @@ -138,7 +138,7 @@ public void getPostWhileWhileUnauthenticated() {
}

@Test
public void getAnonymousPostWhileWhileUnauthenticated() {
public void getAnonymousPostWhileUnauthenticated() {
given().get(anonymousPost.id.toString())
.then()
.statusCode(200)
Expand All @@ -152,7 +152,7 @@ public void getAnonymousPostWhileWhileUnauthenticated() {
}

@Test
public void getDraftWhileWhileUnauthenticated() {
public void getDraftWhileUnauthenticated() {
given().get(draft.id.toString()).then().statusCode(404);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void publishOtherDraft() {
}

@Test
public void publishPostWhileWhileUnauthenticated() {
public void publishPostWhileUnauthenticated() {
given().contentType(ContentType.JSON)
.body(new PostPublication(false))
.post(post.id + "/publish")
Expand All @@ -100,7 +100,7 @@ public void publishPostWhileWhileUnauthenticated() {
}

@Test
public void publishDraftWhileWhileUnauthenticated() {
public void publishDraftWhileUnauthenticated() {
given().contentType(ContentType.JSON)
.body(new PostPublication(false))
.post(draft.id + "/publish")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void setNonExistentPostReported(final String id) {
}

@Test
public void setPostReportedWhileWhileUnauthenticated() {
public void setPostReportedWhileUnauthenticated() {
final var reportCount = Report.count();
given().contentType(ContentType.JSON)
.body(new ReportUpdate(false))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public void setNonExistentPostReported(final String id) {
}

@Test
public void setPostReportedWhileWhileUnauthenticated() {
public void setPostReportedWhileUnauthenticated() {
final var reportCount = Report.count();
given().contentType(ContentType.JSON)
.body(new ReportUpdate(true))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public void setOtherAnonymousPostSubscribedWhenBlocked() {
}

@Test
public void setPostSubscribedWhileWhileUnauthenticated() {
public void setPostSubscribedWhileUnauthenticated() {
final var subscriptionCount = Subscription.count();
given().contentType(ContentType.JSON)
.body(new SubscriptionUpdate(false))
Expand All @@ -137,7 +137,7 @@ public void setPostSubscribedWhileWhileUnauthenticated() {
}

@Test
public void setDraftSubscribedWhileWhileUnauthenticated() {
public void setDraftSubscribedWhileUnauthenticated() {
final var subscriptionCount = Subscription.count();
given().contentType(ContentType.JSON)
.body(new SubscriptionUpdate(false))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public void setOtherAnonymousPostSubscribedWhenBlocked() {
}

@Test
public void setPostSubscribedWhileWhileUnauthenticated() {
public void setPostSubscribedWhileUnauthenticated() {
final var subscriptionCount = Subscription.count();
given().contentType(ContentType.JSON)
.body(new SubscriptionUpdate(true))
Expand All @@ -148,7 +148,7 @@ public void setPostSubscribedWhileWhileUnauthenticated() {
}

@Test
public void setDraftSubscribedWhileWhileUnauthenticated() {
public void setDraftSubscribedWhileUnauthenticated() {
final var subscriptionCount = Subscription.count();
given().contentType(ContentType.JSON)
.body(new SubscriptionUpdate(true))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public void votePostWithEmptyInput() {
}

@Test
public void votePostWhileWhileUnauthenticated() {
public void votePostWhileUnauthenticated() {
final var voteCount = Vote.count();
given().contentType(ContentType.JSON)
.body(new VoteCreation(false))
Expand Down

0 comments on commit e8a431f

Please sign in to comment.