Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TeeTime-Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nelson Tavares de Sousa
TeeTime-Framework
Commits
9cd55ce3
Commit
9cd55ce3
authored
9 years ago
by
Christian Wulf
Browse files
Options
Downloads
Patches
Plain Diff
adapted new API
parent
81a1c321
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.settings/edu.umd.cs.findbugs.core.prefs
+1
-1
1 addition, 1 deletion
.settings/edu.umd.cs.findbugs.core.prefs
src/test/java/teetime/stage/basic/distributor/dynamic/ControlledDistributorTest.java
+6
-7
6 additions, 7 deletions
.../basic/distributor/dynamic/ControlledDistributorTest.java
with
7 additions
and
8 deletions
.settings/edu.umd.cs.findbugs.core.prefs
+
1
−
1
View file @
9cd55ce3
#FindBugs User Preferences
#FindBugs User Preferences
#Mon Jun 22 16:
34:51
CEST 2015
#Mon Jun 22 16:
47:12
CEST 2015
detector_threshold=2
detector_threshold=2
effort=max
effort=max
excludefilter0=.fbExcludeFilterFile|true
excludefilter0=.fbExcludeFilterFile|true
...
...
This diff is collapsed.
Click to expand it.
src/test/java/teetime/stage/basic/distributor/dynamic/ControlledDistributorTest.java
+
6
−
7
View file @
9cd55ce3
...
@@ -11,8 +11,8 @@ import java.util.List;
...
@@ -11,8 +11,8 @@ import java.util.List;
import
org.junit.Before
;
import
org.junit.Before
;
import
org.junit.Test
;
import
org.junit.Test
;
import
teetime.framework.
Analysis
;
import
teetime.framework.
ConfigurationContext
;
import
teetime.framework.
AnalysisConfigura
tion
;
import
teetime.framework.
Execu
tion
;
import
teetime.framework.Stage
;
import
teetime.framework.Stage
;
import
teetime.framework.exceptionHandling.TerminatingExceptionListenerFactory
;
import
teetime.framework.exceptionHandling.TerminatingExceptionListenerFactory
;
import
teetime.stage.CollectorSink
;
import
teetime.stage.CollectorSink
;
...
@@ -36,7 +36,7 @@ public class ControlledDistributorTest {
...
@@ -36,7 +36,7 @@ public class ControlledDistributorTest {
List
<
PortAction
<
Integer
>>
inputActions
=
Arrays
.
asList
(
createAction
,
createAction
,
createAction
,
createAction
,
createAction
);
List
<
PortAction
<
Integer
>>
inputActions
=
Arrays
.
asList
(
createAction
,
createAction
,
createAction
,
createAction
,
createAction
);
ControlledDistributorTestConfig
<
Integer
>
config
=
new
ControlledDistributorTestConfig
<
Integer
>(
inputNumbers
,
inputActions
);
ControlledDistributorTestConfig
<
Integer
>
config
=
new
ControlledDistributorTestConfig
<
Integer
>(
inputNumbers
,
inputActions
);
Analysis
<
ControlledDistributorTestConfig
<
Integer
>>
analysis
=
new
Analysis
<
ControlledDistributorTestConfig
<
Integer
>>(
config
,
Execution
<
ControlledDistributorTestConfig
<
Integer
>>
analysis
=
new
Execution
<
ControlledDistributorTestConfig
<
Integer
>>(
config
,
new
TerminatingExceptionListenerFactory
());
new
TerminatingExceptionListenerFactory
());
analysis
.
executeBlocking
();
analysis
.
executeBlocking
();
...
@@ -56,7 +56,7 @@ public class ControlledDistributorTest {
...
@@ -56,7 +56,7 @@ public class ControlledDistributorTest {
}
}
ControlledDistributorTestConfig
<
Integer
>
config
=
new
ControlledDistributorTestConfig
<
Integer
>(
inputNumbers
,
Arrays
.
asList
(
inputActions
));
ControlledDistributorTestConfig
<
Integer
>
config
=
new
ControlledDistributorTestConfig
<
Integer
>(
inputNumbers
,
Arrays
.
asList
(
inputActions
));
Analysis
<
ControlledDistributorTestConfig
<
Integer
>>
analysis
=
new
Analysis
<
ControlledDistributorTestConfig
<
Integer
>>(
config
,
Execution
<
ControlledDistributorTestConfig
<
Integer
>>
analysis
=
new
Execution
<
ControlledDistributorTestConfig
<
Integer
>>(
config
,
new
TerminatingExceptionListenerFactory
());
new
TerminatingExceptionListenerFactory
());
analysis
.
executeBlocking
();
analysis
.
executeBlocking
();
...
@@ -83,7 +83,7 @@ public class ControlledDistributorTest {
...
@@ -83,7 +83,7 @@ public class ControlledDistributorTest {
inputActions
[
5
]
=
new
RemovePortAction
<
Integer
>(
null
);
inputActions
[
5
]
=
new
RemovePortAction
<
Integer
>(
null
);
ControlledDistributorTestConfig
<
Integer
>
config
=
new
ControlledDistributorTestConfig
<
Integer
>(
inputNumbers
,
Arrays
.
asList
(
inputActions
));
ControlledDistributorTestConfig
<
Integer
>
config
=
new
ControlledDistributorTestConfig
<
Integer
>(
inputNumbers
,
Arrays
.
asList
(
inputActions
));
Analysis
<
ControlledDistributorTestConfig
<
Integer
>>
analysis
=
new
Analysis
<
ControlledDistributorTestConfig
<
Integer
>>(
config
,
Execution
<
ControlledDistributorTestConfig
<
Integer
>>
analysis
=
new
Execution
<
ControlledDistributorTestConfig
<
Integer
>>(
config
,
new
TerminatingExceptionListenerFactory
());
new
TerminatingExceptionListenerFactory
());
analysis
.
executeBlocking
();
analysis
.
executeBlocking
();
...
@@ -109,7 +109,7 @@ public class ControlledDistributorTest {
...
@@ -109,7 +109,7 @@ public class ControlledDistributorTest {
assertThat
(
collectorSink
.
getElements
(),
is
(
values
));
assertThat
(
collectorSink
.
getElements
(),
is
(
values
));
}
}
private
static
class
ControlledDistributorTestConfig
<
T
>
extends
Analysis
Configuration
{
private
static
class
ControlledDistributorTestConfig
<
T
>
extends
Configuration
Context
{
private
final
CollectorSink
<
T
>
collectorSink
;
private
final
CollectorSink
<
T
>
collectorSink
;
...
@@ -121,7 +121,6 @@ public class ControlledDistributorTest {
...
@@ -121,7 +121,6 @@ public class ControlledDistributorTest {
connectPorts
(
initialElementProducer
.
getOutputPort
(),
distributor
.
getInputPort
());
connectPorts
(
initialElementProducer
.
getOutputPort
(),
distributor
.
getInputPort
());
connectPorts
(
distributor
.
getNewOutputPort
(),
collectorSink
.
getInputPort
());
connectPorts
(
distributor
.
getNewOutputPort
(),
collectorSink
.
getInputPort
());
addThreadableStage
(
initialElementProducer
);
addThreadableStage
(
distributor
);
addThreadableStage
(
distributor
);
addThreadableStage
(
collectorSink
);
addThreadableStage
(
collectorSink
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment