Skip to content

Commit

Permalink
Merge pull request #195 from ls1intum/dependabot/maven/net.jqwik-jqwi…
Browse files Browse the repository at this point in the history
…k-1.6.5

Bump jqwik from 1.6.3 to 1.6.5
  • Loading branch information
MaisiKoleni authored Mar 10, 2022
2 parents 6a53e56 + 5fd8d91 commit e054523
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<maven.compiler.target>11</maven.compiler.target>
<junit-jupiter-version>5.8.2</junit-jupiter-version>
<junit-platform-version>1.8.2</junit-platform-version>
<jqwik-version>1.6.3</jqwik-version>
<jqwik-version>1.6.5</jqwik-version>
<spotless.version>2.21.0</spotless.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
import org.apiguardian.api.API;
import org.apiguardian.api.API.Status;
import org.junit.jupiter.api.Assertions;
import org.junit.platform.engine.TestDescriptor;

import net.jqwik.api.domains.DomainContext;
import net.jqwik.api.lifecycle.AroundPropertyHook;
import net.jqwik.api.lifecycle.PropertyExecutionResult;
import net.jqwik.api.lifecycle.PropertyExecutor;
import net.jqwik.api.lifecycle.PropertyLifecycleContext;
import net.jqwik.engine.execution.lifecycle.CurrentDomainContext;
import net.jqwik.engine.execution.lifecycle.CurrentTestDescriptor;
import net.jqwik.engine.facades.DomainContextFacadeImpl;

import de.tum.in.test.api.StrictTimeout;
import de.tum.in.test.api.internal.TimeoutUtils;
Expand Down Expand Up @@ -42,11 +43,11 @@ public int aroundPropertyProximity() {
@Override
public PropertyExecutionResult aroundProperty(PropertyLifecycleContext context, PropertyExecutor property)
throws Throwable {
DomainContext domainContext = DomainContextFacadeImpl.getCurrentContext();
var desc = CurrentTestDescriptor.get();
return TimeoutUtils.performTimeoutExecution(() -> {
DomainContextFacadeImpl.setCurrentContext(domainContext);
return CurrentTestDescriptor.runWithDescriptor(desc, property::execute);
}, JqwikContext.of(context));
DomainContext domainContext = CurrentDomainContext.get();
TestDescriptor desc = CurrentTestDescriptor.get();
return TimeoutUtils.performTimeoutExecution(
() -> CurrentDomainContext.runWithContext(domainContext,
() -> CurrentTestDescriptor.runWithDescriptor(desc, property::execute)),
JqwikContext.of(context));
}
}
4 changes: 2 additions & 2 deletions src/test/resources/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ repositories {

dependencies {
testImplementation "de.tum.in.ase:artemis-java-test-sandbox:+"
testImplementation "net.jqwik:jqwik:1.6.3"
testImplementation "net.jqwik:jqwik-engine:1.6.3"
testImplementation "net.jqwik:jqwik:1.6.5"
testImplementation "net.jqwik:jqwik-engine:1.6.5"
testImplementation "org.junit.vintage:junit-vintage-engine:5.8.2"
testImplementation "org.junit.platform:junit-platform-testkit:1.8.2"
}
Expand Down

0 comments on commit e054523

Please sign in to comment.