Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
EJB-Calculator
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web2
EJB-Calculator
Commits
98417a9c
Commit
98417a9c
authored
9 years ago
by
Carlos Eduardo da Silva
Browse files
Options
Downloads
Patches
Plain Diff
The test case.
parent
ed0caf43
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Calculator-Bean/ejbModule/br/ufrn/imd/imd0409/calculator/test/CalculatorUnitTestCase.java
+22
-0
22 additions, 0 deletions
...n/imd/imd0409/calculator/test/CalculatorUnitTestCase.java
with
22 additions
and
0 deletions
Calculator-Bean/ejbModule/br/ufrn/imd/imd0409/calculator/test/CalculatorUnitTestCase.java
0 → 100644
+
22
−
0
View file @
98417a9c
package
br.ufrn.imd.imd0409.calculator.test
;
import
static
org
.
junit
.
Assert
.*;
import
org.junit.Test
;
import
br.ufrn.imd.imd0409.calculator.bean.CalculatorCommonBusiness
;
import
br.ufrn.imd.imd0409.calculator.bean.NoInterfaceViewCalculatorBean
;
public
class
CalculatorUnitTestCase
{
@Test
public
void
testAdd
()
{
final
CalculatorCommonBusiness
calc
=
new
NoInterfaceViewCalculatorBean
();
final
int
expectedSum
=
2
+
3
+
5
;
final
int
actualSum
=
calc
.
add
(
2
,
3
,
5
);
assertEquals
(
"Addition did not return the expected result"
,
expectedSum
,
actualSum
);
}
}
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