- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for newProfile (0.11 sec)
-
compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/JdkVersionProfileActivatorTest.java
@Override @BeforeEach void setUp() throws Exception { activator = new JdkVersionProfileActivator(); } private Profile newProfile(String jdkVersion) { Activation a = Activation.newBuilder().jdk(jdkVersion).build(); Profile p = Profile.newBuilder().activation(a).build(); return p; }Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jan 10 07:09:12 UTC 2025 - 9.1K bytes - Viewed (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/OperatingSystemProfileActivatorTest.java
void testName() { Profile profile = newProfile(ActivationOS.newBuilder().name("windows")); assertActivation(false, profile, newContext(null, newProperties("linux", "6.5.0-1014-aws", "amd64"))); assertActivation(true, profile, newContext(null, newProperties("windows", "6.5.0-1014-aws", "aarch64"))); } @Test void testNegatedName() { Profile profile = newProfile(ActivationOS.newBuilder().name("!windows"));
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jan 10 07:09:12 UTC 2025 - 6.3K bytes - Viewed (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/PropertyProfileActivatorTest.java
assertActivation(true, profile, newContext(null, newProperties("prop", "value"))); assertActivation(false, profile, newContext(null, newProperties("prop", "other"))); assertActivation(false, profile, newContext(null, newProperties("other", ""))); } @Test void testWithNegatedValueUserProperty() throws Exception {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Mar 21 04:56:21 UTC 2025 - 5.7K bytes - Viewed (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/DefaultProfileSelectorTest.java
import static org.junit.jupiter.api.Assertions.assertTrue; /** * Tests {@link DefaultProfileSelector}. */ @Deprecated public class DefaultProfileSelectorTest { private Profile newProfile(String id) { Activation activation = new Activation(); Profile profile = new Profile(); profile.setId(id); profile.setActivation(activation); return profile; }Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 2.9K bytes - Viewed (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/FileProfileActivatorTest.java
return newProfile(activationFile); } private Profile newMissingProfile(String filePath) { ActivationFile activationFile = ActivationFile.newBuilder().missing(filePath).build(); return newProfile(activationFile); } private Profile newProfile(ActivationFile activationFile) {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jan 10 07:09:12 UTC 2025 - 6.2K bytes - Viewed (0)