-
-
Notifications
You must be signed in to change notification settings - Fork 518
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue with multi=module support in maven
- Loading branch information
Showing
28 changed files
with
475 additions
and
378 deletions.
There are no files selected for viewing
523 changes: 262 additions & 261 deletions
523
...oovy/net/thucydides/core/requirements/WhenLoadingRequirementsFromAPackageStructure.groovy
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 10 additions & 3 deletions
13
serenity-model/src/main/java/net/serenitybdd/core/environment/ConfiguredEnvironment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,29 @@ | ||
package net.serenitybdd.core.environment; | ||
|
||
import net.thucydides.core.configuration.SystemPropertiesConfiguration; | ||
import net.thucydides.core.environment.SystemEnvironmentVariables; | ||
import net.thucydides.core.guice.Injectors; | ||
import net.thucydides.core.util.EnvironmentVariables; | ||
import net.thucydides.core.webdriver.Configuration; | ||
|
||
public class ConfiguredEnvironment { | ||
private static final ThreadLocal<EnvironmentVariables> testEnvironmentVariables = new ThreadLocal<>(); | ||
|
||
private static ThreadLocal<Configuration> currentConfiguration = ThreadLocal.withInitial(() -> Injectors.getInjector().getInstance(Configuration.class)); | ||
|
||
public static EnvironmentVariables getEnvironmentVariables() { | ||
return SystemEnvironmentVariables.currentEnvironmentVariables(); | ||
} | ||
|
||
public static Configuration getConfiguration() { | ||
return Injectors.getInjector().getInstance(Configuration.class); | ||
return currentConfiguration.get(); | ||
} | ||
|
||
public static void updateConfiguration(EnvironmentVariables environmentVariables) { | ||
currentConfiguration.set(new SystemPropertiesConfiguration(environmentVariables)); | ||
} | ||
|
||
public static void reset() { | ||
testEnvironmentVariables.remove(); | ||
currentConfiguration.set(Injectors.getInjector().getInstance(Configuration.class)); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
serenity-model/src/main/java/net/serenitybdd/core/reporting/ReportDirectories.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.