Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
431ee4cd
Commit
431ee4cd
authored
13 years ago
by
brinn
Browse files
Options
Downloads
Patches
Plain Diff
Increase number of retries to make the tests a bit more reliable.
SVN: 24103
parent
1dbd7d72
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/sourceTest/java/ch/systemsx/cisd/common/concurrent/MonitoringProxyTest.java
+25
-25
25 additions, 25 deletions
.../systemsx/cisd/common/concurrent/MonitoringProxyTest.java
with
25 additions
and
25 deletions
common/sourceTest/java/ch/systemsx/cisd/common/concurrent/MonitoringProxyTest.java
+
25
−
25
View file @
431ee4cd
...
...
@@ -37,7 +37,7 @@ import org.testng.annotations.Test;
import
ch.systemsx.cisd.base.exceptions.InterruptedExceptionUnchecked
;
import
ch.systemsx.cisd.base.exceptions.TimeoutExceptionUnchecked
;
import
ch.systemsx.cisd.base.tests.Retry
1
0
;
import
ch.systemsx.cisd.base.tests.Retry
5
0
;
import
ch.systemsx.cisd.common.TimingParameters
;
import
ch.systemsx.cisd.common.concurrent.MonitoringProxy.IMonitorCommunicator
;
import
ch.systemsx.cisd.common.logging.ConsoleLogger
;
...
...
@@ -347,109 +347,109 @@ public class MonitoringProxyTest
defaultReturningProxy
.
idle
(
true
);
}
@Test
(
expectedExceptions
=
SignalException
.
class
,
retryAnalyzer
=
Retry
1
0
.
class
)
@Test
(
expectedExceptions
=
SignalException
.
class
,
retryAnalyzer
=
Retry
5
0
.
class
)
public
void
testThrowExceptionNullReturningPolicy
()
{
defaultReturningProxy
.
throwSignalException
();
}
@Test
(
expectedExceptions
=
SignalException
.
class
,
retryAnalyzer
=
Retry
1
0
.
class
)
@Test
(
expectedExceptions
=
SignalException
.
class
,
retryAnalyzer
=
Retry
5
0
.
class
)
public
void
testThrowExceptionExceptionThrowsPolicy
()
{
exceptionThrowingProxy
.
throwSignalException
();
}
@Test
(
groups
=
"slow"
,
expectedExceptions
=
TimeoutExceptionUnchecked
.
class
,
retryAnalyzer
=
Retry
1
0
.
class
)
@Test
(
groups
=
"slow"
,
expectedExceptions
=
TimeoutExceptionUnchecked
.
class
,
retryAnalyzer
=
Retry
5
0
.
class
)
public
void
testVoidTimeoutWithException
()
{
exceptionThrowingProxy
.
idle
(
true
);
}
@Test
(
groups
=
"slow"
,
retryAnalyzer
=
Retry
1
0
.
class
)
@Test
(
groups
=
"slow"
,
retryAnalyzer
=
Retry
5
0
.
class
)
public
void
testNoTimeoutDueToSensorUpdate
()
{
exceptionThrowingProxy
.
busyUpdatingActivity
();
}
@Test
(
groups
=
"slow"
,
retryAnalyzer
=
Retry
1
0
.
class
)
@Test
(
groups
=
"slow"
,
retryAnalyzer
=
Retry
5
0
.
class
)
public
void
testNoTimeoutDueToCommunicatorUpdate
()
{
exceptionThrowingProxy
.
busyUpdatingActivity
(
null
);
}
@Test
(
retryAnalyzer
=
Retry
1
0
.
class
)
@Test
(
retryAnalyzer
=
Retry
5
0
.
class
)
public
void
testGetStringNullReturningPolicy
()
{
assertEquals
(
THE_STRING
,
defaultReturningProxy
.
getString
(
false
));
}
@Test
(
retryAnalyzer
=
Retry
1
0
.
class
)
@Test
(
retryAnalyzer
=
Retry
5
0
.
class
)
public
void
testGetStringExceptionThrowingPolicy
()
{
assertEquals
(
THE_STRING
,
exceptionThrowingProxy
.
getString
(
false
));
}
@Test
(
groups
=
"slow"
,
retryAnalyzer
=
Retry
1
0
.
class
)
@Test
(
groups
=
"slow"
,
retryAnalyzer
=
Retry
5
0
.
class
)
public
void
testGetStringTimeoutNoException
()
{
assertNull
(
defaultReturningProxy
.
getString
(
true
));
}
@Test
(
groups
=
"slow"
,
expectedExceptions
=
TimeoutExceptionUnchecked
.
class
,
retryAnalyzer
=
Retry
1
0
.
class
)
@Test
(
groups
=
"slow"
,
expectedExceptions
=
TimeoutExceptionUnchecked
.
class
,
retryAnalyzer
=
Retry
5
0
.
class
)
public
void
testGetStringTimeoutWithException
()
{
exceptionThrowingProxy
.
getString
(
true
);
}
@Test
(
retryAnalyzer
=
Retry
1
0
.
class
)
@Test
(
retryAnalyzer
=
Retry
5
0
.
class
)
public
void
testGetIntNullReturningPolicy
()
{
assertEquals
(
THE_INTEGER
,
defaultReturningProxy
.
getInteger
(
false
));
}
@Test
(
retryAnalyzer
=
Retry
1
0
.
class
)
@Test
(
retryAnalyzer
=
Retry
5
0
.
class
)
public
void
testGetIntExceptionThrowingPolicy
()
{
assertEquals
(
THE_INTEGER
,
exceptionThrowingProxy
.
getInteger
(
false
));
}
@Test
(
groups
=
"slow"
,
retryAnalyzer
=
Retry
1
0
.
class
)
@Test
(
groups
=
"slow"
,
retryAnalyzer
=
Retry
5
0
.
class
)
public
void
testGetBoolTimeoutReturnsDefault
()
{
assertEquals
(
false
,
defaultReturningProxy
.
getBoolean
(
true
));
}
@Test
(
retryAnalyzer
=
Retry
1
0
.
class
)
@Test
(
retryAnalyzer
=
Retry
5
0
.
class
)
public
void
testGetStatus
()
{
assertEquals
(
THE_STATUS
,
defaultReturningProxy
.
getStatus
(
false
));
}
@Test
(
groups
=
"slow"
,
retryAnalyzer
=
Retry
1
0
.
class
)
@Test
(
groups
=
"slow"
,
retryAnalyzer
=
Retry
5
0
.
class
)
public
void
testGetStatusTimeoutReturnsDefault
()
{
assertEquals
(
Status
.
UUUPS
,
defaultReturningProxy
.
getStatus
(
true
));
}
@Test
(
groups
=
"slow"
,
retryAnalyzer
=
Retry
1
0
.
class
)
@Test
(
groups
=
"slow"
,
retryAnalyzer
=
Retry
5
0
.
class
)
public
void
testGetSpecialStatusTimeoutReturnsMethodDefault
()
{
assertEquals
(
Status
.
SPECIAL_UUUPS
,
defaultReturningProxy
.
getSpecialStatus
(
true
));
}
@Test
(
groups
=
"slow"
,
retryAnalyzer
=
Retry
1
0
.
class
)
@Test
(
groups
=
"slow"
,
retryAnalyzer
=
Retry
5
0
.
class
)
public
void
testGetIntTimeoutReturnsDefault
()
{
assertEquals
(
0
,
defaultReturningProxy
.
getInteger
(
true
));
}
@Test
(
groups
=
"slow"
,
expectedExceptions
=
TimeoutExceptionUnchecked
.
class
,
retryAnalyzer
=
Retry
1
0
.
class
)
@Test
(
groups
=
"slow"
,
expectedExceptions
=
TimeoutExceptionUnchecked
.
class
,
retryAnalyzer
=
Retry
5
0
.
class
)
public
void
testGetIntTimeoutWithException
()
{
exceptionThrowingProxy
.
getInteger
(
true
);
}
@Test
(
groups
=
"slow"
,
expectedExceptions
=
InterruptedExceptionUnchecked
.
class
,
retryAnalyzer
=
Retry
1
0
.
class
)
@Test
(
groups
=
"slow"
,
expectedExceptions
=
InterruptedExceptionUnchecked
.
class
,
retryAnalyzer
=
Retry
5
0
.
class
)
public
void
testInterruptTheUninterruptableThrowsException
()
{
final
ITest
proxy
=
...
...
@@ -471,7 +471,7 @@ public class MonitoringProxyTest
timer
.
cancel
();
}
@Test
(
groups
=
"slow"
,
retryAnalyzer
=
Retry
1
0
.
class
)
@Test
(
groups
=
"slow"
,
retryAnalyzer
=
Retry
5
0
.
class
)
public
void
testInterruptTheUninterruptableReturnsDefaultValue
()
{
final
String
defaultReturnValue
=
"That's the default return value."
;
...
...
@@ -502,14 +502,14 @@ public class MonitoringProxyTest
exceptionThrowingProxy
.
worksOnSecondInvocation
();
}
@Test
(
retryAnalyzer
=
Retry
1
0
.
class
)
@Test
(
retryAnalyzer
=
Retry
5
0
.
class
)
public
void
testRetryOnceFailOnce
()
{
retryingOnceExceptionThrowingProxy
.
worksOnSecondInvocation
();
}
@Test
(
groups
=
{
"slow"
},
retryAnalyzer
=
Retry
1
0
.
class
)
{
"slow"
},
retryAnalyzer
=
Retry
5
0
.
class
)
public
void
testRetryOnceFailOnceWithCommunicator
()
{
retryingOnceExceptionThrowingProxy
.
resetInvocationsCancelled
();
...
...
@@ -519,19 +519,19 @@ public class MonitoringProxyTest
assertEquals
(
1
,
retryingOnceExceptionThrowingProxy
.
getInvocationsCancelled
());
}
@Test
(
expectedExceptions
=
RetryItException
.
class
,
retryAnalyzer
=
Retry
1
0
.
class
,
groups
=
"broken"
)
@Test
(
expectedExceptions
=
RetryItException
.
class
,
retryAnalyzer
=
Retry
5
0
.
class
,
groups
=
"broken"
)
public
void
testRetryOnceFailTwice
()
{
retryingOnceExceptionThrowingProxy
.
worksOnThirdInvocation
();
}
@Test
(
groups
=
"slow"
,
retryAnalyzer
=
Retry
1
0
.
class
)
@Test
(
groups
=
"slow"
,
retryAnalyzer
=
Retry
5
0
.
class
)
public
void
testRetryTwiceFailTwice
()
{
retryingTwiceExceptionThrowingProxy
.
worksOnThirdInvocation
();
}
@Test
(
retryAnalyzer
=
Retry
1
0
.
class
)
@Test
(
retryAnalyzer
=
Retry
5
0
.
class
)
public
void
testInvocationLog
()
{
final
List
<
ExecutionResult
<
Object
>>
results
=
new
ArrayList
<
ExecutionResult
<
Object
>>();
...
...
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