-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use unit test execution context for java-client unit tests
- Loading branch information
1 parent
d0cba48
commit 92f7c51
Showing
15 changed files
with
119 additions
and
13 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
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
27 changes: 27 additions & 0 deletions
27
server/src/main/java/io/deephaven/server/console/NoConsoleSessionModule.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,27 @@ | ||
/** | ||
* Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending | ||
*/ | ||
package io.deephaven.server.console; | ||
|
||
import dagger.Module; | ||
import dagger.Provides; | ||
import dagger.multibindings.IntoMap; | ||
import dagger.multibindings.StringKey; | ||
import io.deephaven.engine.util.NoLanguageDeephavenSession; | ||
import io.deephaven.engine.util.ScriptSession; | ||
import io.deephaven.server.console.groovy.InitScriptsModule; | ||
|
||
@Module(includes = InitScriptsModule.ServiceLoader.class) | ||
public class NoConsoleSessionModule { | ||
@Provides | ||
@IntoMap | ||
@StringKey("none") | ||
ScriptSession bindScriptSession(NoLanguageDeephavenSession noLanguageSession) { | ||
return noLanguageSession; | ||
} | ||
|
||
@Provides | ||
NoLanguageDeephavenSession bindNoLanguageSession() { | ||
return new NoLanguageDeephavenSession(); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
server/src/main/java/io/deephaven/server/console/SessionToExecutionStateModule.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,14 @@ | ||
package io.deephaven.server.console; | ||
|
||
import dagger.Module; | ||
import dagger.Provides; | ||
import io.deephaven.engine.context.ExecutionContext; | ||
import io.deephaven.engine.util.ScriptSession; | ||
|
||
@Module | ||
public class SessionToExecutionStateModule { | ||
@Provides | ||
ExecutionContext bindExecutionContext(ScriptSession session) { | ||
return session.getExecutionContext(); | ||
} | ||
} |
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
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