Skip to content

Commit

Permalink
fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marwanehcine committed Mar 8, 2024
1 parent c085e25 commit fc73b31
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.function.Consumer;
import java.util.stream.Collectors;

Expand Down Expand Up @@ -86,7 +88,10 @@ void testNoUser() {

HttpHeaders target = new HttpHeaders();
contributor.accept(target);
assertTrue(target.isEmpty());
assertFalse(target.isEmpty());
Objects.requireNonNull(target.get(SEC_EXTERNAL_AUTHENTICATION));
assertEquals(List.of("false"), target.get(SEC_EXTERNAL_AUTHENTICATION));
assertEquals(1, target.size());
}

@Test
Expand Down

0 comments on commit fc73b31

Please sign in to comment.