File tree Expand file tree Collapse file tree 10 files changed +17
-22
lines changed
src/test/java/dev/openfeature/contrib/providers/flagd Expand file tree Collapse file tree 10 files changed +17
-22
lines changed Original file line number Diff line number Diff line change 147147 <dependency >
148148 <groupId >org.testcontainers</groupId >
149149 <artifactId >testcontainers</artifactId >
150- <version >1.21.3 </version >
150+ <version >2.0.2 </version >
151151 <scope >test</scope >
152152 </dependency >
153153 <dependency >
154154 <groupId >org.testcontainers</groupId >
155- <artifactId >junit-jupiter</artifactId >
156- <version >1.21.3 </version >
155+ <artifactId >testcontainers- junit-jupiter</artifactId >
156+ <version >2.0.2 </version >
157157 <scope >test</scope >
158158 </dependency >
159159 <dependency >
162162 <version >5.5.6</version >
163163 <scope >test</scope >
164164 </dependency >
165+ <dependency >
166+ <groupId >commons-io</groupId >
167+ <artifactId >commons-io</artifactId >
168+ <version >2.21.0</version >
169+ <scope >test</scope >
170+ </dependency >
165171 <!-- uncomment for logoutput during test runs -->
166172 <dependency >
167173 <groupId >org.slf4j</groupId >
Original file line number Diff line number Diff line change 11package dev .openfeature .contrib .providers .flagd ;
22
3- import static org .junit .Assert .assertEquals ;
3+ import static org .junit .jupiter . api . Assertions .assertEquals ;
44
55import dev .openfeature .sdk .EvaluationContext ;
66import dev .openfeature .sdk .FlagValueType ;
99import dev .openfeature .sdk .MutableContext ;
1010import java .util .Optional ;
1111import java .util .function .Supplier ;
12- import org .junit .Test ;
12+ import org .junit .jupiter . api . Test ;
1313
1414/** SyncMetadataHookTest */
1515public class SyncMetadataHookTest {
Original file line number Diff line number Diff line change 66
77import dev .openfeature .contrib .providers .flagd .Config ;
88import org .apache .logging .log4j .core .config .Order ;
9- import org .junit .jupiter .api .parallel .Isolated ;
109import org .junit .platform .suite .api .BeforeSuite ;
1110import org .junit .platform .suite .api .ConfigurationParameter ;
1211import org .junit .platform .suite .api .ExcludeTags ;
3130@ IncludeTags ("in-process" )
3231@ ExcludeTags ({"unixsocket" })
3332@ Testcontainers
34- @ Isolated
3533public class RunInProcessTest {
3634
3735 @ BeforeSuite
Original file line number Diff line number Diff line change 77import io .cucumber .java .en .Given ;
88import java .util .HashMap ;
99import java .util .Map ;
10- import org .junit .jupiter .api .parallel .Isolated ;
1110
12- @ Isolated ()
1311public class ContextSteps extends AbstractSteps {
1412
1513 public ContextSteps (State state ) {
Original file line number Diff line number Diff line change 1111import java .util .LinkedList ;
1212import lombok .extern .slf4j .Slf4j ;
1313import org .jetbrains .annotations .NotNull ;
14- import org .junit .jupiter .api .parallel .Isolated ;
1514
16- @ Isolated ()
1715@ Slf4j
1816public class EventSteps extends AbstractSteps {
1917
Original file line number Diff line number Diff line change 1515import java .util .List ;
1616import java .util .Map ;
1717import lombok .extern .slf4j .Slf4j ;
18- import org .junit .jupiter .api .parallel .Isolated ;
1918
2019@ Slf4j
21- @ Isolated ()
2220public class FlagSteps extends AbstractSteps {
2321
2422 public FlagSteps (State state ) {
Original file line number Diff line number Diff line change 2121import java .nio .file .Paths ;
2222import java .time .Duration ;
2323import lombok .extern .slf4j .Slf4j ;
24+ import org .apache .commons .io .FileUtils ;
2425import org .apache .commons .lang3 .RandomStringUtils ;
2526import org .apache .commons .lang3 .StringUtils ;
26- import org .junit .jupiter .api .parallel .Isolated ;
2727import org .testcontainers .containers .ComposeContainer ;
2828import org .testcontainers .containers .wait .strategy .Wait ;
29- import org .testcontainers .shaded .org .apache .commons .io .FileUtils ;
3029
31- @ Isolated ()
3230@ Slf4j
3331public class ProviderSteps extends AbstractSteps {
3432
Original file line number Diff line number Diff line change 1717import java .util .concurrent .BlockingQueue ;
1818import java .util .concurrent .LinkedBlockingQueue ;
1919import java .util .stream .Collectors ;
20- import org .junit .Assert ;
2120import org .junit .jupiter .api .Test ;
2221
2322class FlagStoreTest {
@@ -100,7 +99,7 @@ public void changedFlags() throws Exception {
10099 FlagParser .parseString (getFlagsFromResource (VALID_LONG ), true ).getFlags ();
101100 expectedChangedFlags .remove ("myBoolFlag" );
102101 // flags changed from initial VALID_SIMPLE flag, as a set because we don't care about order
103- Assert . assertEquals (
102+ assertEquals (
104103 expectedChangedFlags .keySet ().stream ().collect (Collectors .toSet ()),
105104 new HashSet <>(storageStateDTOS .take ().getChangedFlagsKeys ()));
106105 }
Original file line number Diff line number Diff line change 11package dev .openfeature .contrib .providers .flagd .resolver .process .storage .connector .sync ;
22
3- import static org .junit .Assert .assertNotNull ;
4- import static org .junit .Assert .assertNull ;
5- import static org .junit .Assert .assertTrue ;
63import static org .junit .jupiter .api .Assertions .assertEquals ;
4+ import static org .junit .jupiter .api .Assertions .assertNotNull ;
5+ import static org .junit .jupiter .api .Assertions .assertNull ;
6+ import static org .junit .jupiter .api .Assertions .assertTrue ;
77import static org .mockito .ArgumentMatchers .any ;
88import static org .mockito .ArgumentMatchers .anyLong ;
99import static org .mockito .Mockito .doAnswer ;
Original file line number Diff line number Diff line change 11package dev .openfeature .contrib .providers .flagd .resolver .rpc ;
22
3- import static org .junit .Assert .assertNotNull ;
3+ import static org .junit .jupiter . api . Assertions .assertNotNull ;
44import static org .mockito .Mockito .mock ;
55import static org .mockito .Mockito .when ;
66
You can’t perform that action at this time.
0 commit comments