Skip to content

Commit 398cdb6

Browse files
author
Jonathan Knight
committed
Fix Bedrock profiles
(merge 14.1.2-0 -> ce/14.1.2-0 118180) [git-p4: depot-paths = "//dev/coherence-ce/release/coherence-ce-v14.1.2.0/": change = 118182]
1 parent 7f97c93 commit 398cdb6

File tree

2 files changed

+19
-2
lines changed
  • prj/coherence-bedrock
    • coherence-bedrock-tests-junit5/src/test/java/com/oracle/bedrock/runtime/coherence/profiles
    • coherence-bedrock/src/main/java/com/oracle/bedrock/runtime/coherence/profiles

2 files changed

+19
-2
lines changed

prj/coherence-bedrock/coherence-bedrock-tests-junit5/src/test/java/com/oracle/bedrock/runtime/coherence/profiles/LoomProfileIT.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2024, Oracle and/or its affiliates.
2+
* Copyright (c) 2000, 2025, Oracle and/or its affiliates.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at
55
* https://oss.oracle.com/licenses/upl.
@@ -13,16 +13,25 @@
1313
import com.oracle.bedrock.runtime.coherence.options.WellKnownAddress;
1414
import com.oracle.bedrock.runtime.java.options.SystemProperty;
1515
import com.oracle.bedrock.testsupport.deferred.Eventually;
16+
import org.junit.jupiter.api.BeforeAll;
17+
import org.junit.jupiter.api.BeforeEach;
1618
import org.junit.jupiter.api.Test;
1719

1820
import static org.hamcrest.CoreMatchers.is;
1921
import static org.hamcrest.MatcherAssert.assertThat;
2022

2123
public class LoomProfileIT
2224
{
25+
@BeforeEach
26+
public void cleanup()
27+
{
28+
System.clearProperty(LoomProfile.PROPERTY_ENABLED);
29+
}
30+
2331
@Test
2432
public void shouldEnableLoom()
2533
{
34+
System.setProperty(LoomProfile.PROPERTY_ENABLED, "true");
2635
LoomProfile profile = new LoomProfile(true);
2736

2837
try (CoherenceClusterMember member = LocalPlatform.get().launch(CoherenceClusterMember.class,

prj/coherence-bedrock/coherence-bedrock/src/main/java/com/oracle/bedrock/runtime/coherence/profiles/LoomProfile.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,16 @@ public class LoomProfile
2323
/**
2424
* Create a {@link LoomProfile}.
2525
*/
26-
@OptionsByType.Default
2726
public LoomProfile()
27+
{
28+
this("");
29+
}
30+
31+
/**
32+
* Create a {@link LoomProfile}.
33+
*/
34+
@OptionsByType.Default
35+
public LoomProfile(String ignored)
2836
{
2937
this(Config.getBoolean(PROPERTY_ENABLED));
3038
}

0 commit comments

Comments
 (0)