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
a1c81133
Commit
a1c81133
authored
9 years ago
by
Nelson Tavares de Sousa
Browse files
Options
Downloads
Patches
Plain Diff
simplyfied the test
parent
45e340f1
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
src/test/java/teetime/framework/exceptionHandling/ExceptionHandlingTest.java
+2
-11
2 additions, 11 deletions
...me/framework/exceptionHandling/ExceptionHandlingTest.java
with
2 additions
and
11 deletions
src/test/java/teetime/framework/exceptionHandling/ExceptionHandlingTest.java
+
2
−
11
View file @
a1c81133
...
@@ -15,8 +15,6 @@
...
@@ -15,8 +15,6 @@
*/
*/
package
teetime.framework.exceptionHandling
;
package
teetime.framework.exceptionHandling
;
import
static
org
.
junit
.
Assert
.
assertTrue
;
import
org.junit.Test
;
import
org.junit.Test
;
import
teetime.framework.Execution
;
import
teetime.framework.Execution
;
...
@@ -24,16 +22,9 @@ import teetime.framework.ExecutionException;
...
@@ -24,16 +22,9 @@ import teetime.framework.ExecutionException;
public
class
ExceptionHandlingTest
{
public
class
ExceptionHandlingTest
{
@Test
@Test
(
expected
=
ExecutionException
.
class
)
public
void
testException
()
{
public
void
testException
()
{
boolean
exceptionArised
=
false
;
new
Execution
<
ExceptionPassingTestConfig
>(
new
ExceptionPassingTestConfig
()).
executeBlocking
();
ExceptionPassingTestConfig
exceptionPassingTestConfig
=
new
ExceptionPassingTestConfig
();
try
{
new
Execution
<
ExceptionPassingTestConfig
>(
exceptionPassingTestConfig
).
executeBlocking
();
}
catch
(
ExecutionException
e
)
{
exceptionArised
=
true
;
}
assertTrue
(
exceptionArised
);
}
}
}
}
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