Skip to content

Commit

Permalink
Add order annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasjensen-brolstark committed Mar 27, 2024
1 parent 6b6664a commit 93a7283
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import static org.hamcrest.Matchers.containsString;

import org.junit.jupiter.api.Order;
import org.junit.jupiter.api.Test;

import com.unboundid.ldap.listener.InMemoryDirectoryServer;
Expand All @@ -16,6 +17,7 @@ class ElytronSecurityLdapTest {
InMemoryDirectoryServer ldapServer;

@Test
@Order(1)
void anonymous() {
RestAssured.given()
.when()
Expand All @@ -26,6 +28,7 @@ void anonymous() {
}

@Test
@Order(2)
void standard_role_not_authenticated() {
RestAssured.given()
.redirects().follow(false)
Expand All @@ -36,6 +39,7 @@ void standard_role_not_authenticated() {
}

@Test
@Order(3)
void standard_role_authenticated() {
RestAssured.given()
.redirects().follow(false)
Expand All @@ -47,6 +51,7 @@ void standard_role_authenticated() {
}

@Test
@Order(4)
void standard_role_not_authorized() {
RestAssured.given()
.redirects().follow(false)
Expand All @@ -58,6 +63,7 @@ void standard_role_not_authorized() {
}

@Test
@Order(5)
void admin_role_authorized() {
RestAssured.given()
.when()
Expand All @@ -68,6 +74,7 @@ void admin_role_authorized() {
}

@Test
@Order(6)
void admin_role_not_authenticated() {
RestAssured.given()
.redirects().follow(false)
Expand All @@ -78,6 +85,7 @@ void admin_role_not_authenticated() {
}

@Test
@Order(7)
void admin_role_not_authorized() {
RestAssured.given()
.redirects().follow(false)
Expand All @@ -89,6 +97,7 @@ void admin_role_not_authorized() {
}

@Test()
@Order(8)
void standard_role_authenticated_cached() throws LDAPException {
RestAssured.given()
.redirects().follow(false)
Expand Down

0 comments on commit 93a7283

Please sign in to comment.