Skip to content

Commit e3ae674

Browse files
committed
new VMLens version
1 parent b8c43e7 commit e3ae674

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

pom.xml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
<dependency>
171171
<groupId>com.vmlens</groupId>
172172
<artifactId>api</artifactId>
173-
<version>1.2.10</version>
173+
<version>1.2.11</version>
174174
</dependency>
175175

176176
</dependencies>
@@ -307,7 +307,7 @@
307307
<plugin>
308308
<groupId>com.vmlens</groupId>
309309
<artifactId>vmlens-maven-plugin</artifactId>
310-
<version>1.2.10</version>
310+
<version>1.2.11</version>
311311
<executions>
312312
<execution>
313313
<id>test</id>
@@ -316,6 +316,11 @@
316316
</goals>
317317
</execution>
318318
</executions>
319+
<configuration>
320+
<includes>
321+
<include>**/VmLensTest.java</include>
322+
</includes>
323+
</configuration>
319324
</plugin>
320325
</plugins>
321326
</build>

src/main/java/dev/openfeature/sdk/VmLensTest.java renamed to src/test/java/dev/openfeature/sdk/VmLensTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import com.vmlens.api.Runner;
55
import dev.openfeature.sdk.providers.memory.Flag;
66
import dev.openfeature.sdk.providers.memory.InMemoryProvider;
7+
import org.junit.jupiter.api.Test;
78
import java.util.HashMap;
89
import java.util.concurrent.atomic.AtomicInteger;
910

@@ -15,6 +16,7 @@ public static void main(String[] args) throws InterruptedException {
1516
new VmLensTest().asomeMethod();
1617
}
1718

19+
@Test
1820
public void asomeMethod() throws InterruptedException {
1921
var c = new AtomicInteger();
2022
final OpenFeatureAPI api = new OpenFeatureAPI();
@@ -25,20 +27,18 @@ public void asomeMethod() throws InterruptedException {
2527
flags.put("c", Flag.builder().variant("a", "dfs").defaultVariant("a").build());
2628
flags.put("d", Flag.builder().variant("a", "asddd").defaultVariant("a").build());
2729
api.setProviderAndWait(new InMemoryProvider(flags));
28-
var client = api.getClient();
30+
2931
try (AllInterleavings allInterleavings = new AllInterleavings("Concurrent evaluations and hook additions")) {
3032
while (allInterleavings.hasNext()) {
33+
var client = api.getClient();
3134
c.incrementAndGet();
32-
3335
Runner.runParallel(
3436
() -> client.getStringValue("a", "a"),
3537
() -> client.addHooks(new Hook() {})
3638
);
3739
}
3840
}
39-
4041
api.shutdown();
41-
4242
System.out.println("c = " + c);
4343
}
4444
}

0 commit comments

Comments
 (0)