-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: allow remote connection to debug window (#143)
Prevents error logs on browser console that make some test fail
- Loading branch information
1 parent
4eb35f9
commit 8595c07
Showing
3 changed files
with
39 additions
and
7 deletions.
There are no files selected for viewing
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
26 changes: 26 additions & 0 deletions
26
...common-test-code/src/test/java/com/vaadin/flow/test/VaadinSystemPropertiesPropagator.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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.vaadin.flow.test; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
import io.quarkus.test.common.QuarkusTestResourceLifecycleManager; | ||
|
||
/** | ||
* Propagates all Vaadin related system properties to Quarkus test. | ||
*/ | ||
public class VaadinSystemPropertiesPropagator | ||
implements QuarkusTestResourceLifecycleManager { | ||
|
||
@Override | ||
public Map<String, String> start() { | ||
Map<String, String> props = new HashMap<>(); | ||
System.getProperties().stringPropertyNames().stream() | ||
.filter(key -> key.startsWith("vaadin.")) | ||
.forEach(key -> props.put(key, System.getProperty(key))); | ||
return props; | ||
} | ||
|
||
@Override | ||
public void stop() { | ||
} | ||
} |
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