-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make DeephavenSessionTestBase use NoLanguageDeephavenSession (#2811)
- Loading branch information
1 parent
d0cba48
commit 424f20a
Showing
21 changed files
with
145 additions
and
16 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
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
16 changes: 16 additions & 0 deletions
16
server/src/test/java/io/deephaven/server/runner/ExecutionContextUnitTestModule.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,16 @@ | ||
package io.deephaven.server.runner; | ||
|
||
import dagger.Module; | ||
import dagger.Provides; | ||
import io.deephaven.engine.context.ExecutionContext; | ||
|
||
import javax.inject.Singleton; | ||
|
||
@Module | ||
public class ExecutionContextUnitTestModule { | ||
@Provides | ||
@Singleton | ||
public ExecutionContext provideExecutionContext() { | ||
return ExecutionContext.createForUnitTests(); | ||
} | ||
} |
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.