Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
SWEN90006-A1-2019
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tian Jinxin
SWEN90006-A1-2019
Commits
6be0c644
Commit
6be0c644
authored
Sep 5, 2019
by
Tian Jinxin
Browse files
Options
Downloads
Patches
Plain Diff
Update BoundaryTests.java
parent
037ccad3
No related branches found
No related tags found
No related merge requests found
Pipeline
#5276
failed
Sep 5, 2019
Stage: check_elig
Stage: validate_tests
Stage: validate_progs
Stage: submit
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/Boundary/swen90006/passbook/BoundaryTests.java
+77
-6
77 additions, 6 deletions
tests/Boundary/swen90006/passbook/BoundaryTests.java
with
77 additions
and
6 deletions
tests/Boundary/swen90006/passbook/BoundaryTests.java
+
77
−
6
View file @
6be0c644
...
@@ -14,12 +14,83 @@ import static org.junit.Assert.*;
...
@@ -14,12 +14,83 @@ import static org.junit.Assert.*;
public
class
BoundaryTests
public
class
BoundaryTests
extends
PartitioningTests
extends
PartitioningTests
{
{
//Add another test
@Test
public
void
anotherTEst
()
//Test1
@Test
public
void
test1
()
throws
DuplicateUserException
,
WeakPassphraseException
{
pb
.
addUser
(
"Sam"
,
"123456aA"
);
assertTrue
(
pb
.
isUser
(
"Sam"
));
}
//Test2
@Test
public
void
Test2
()
throws
DuplicateUserException
,
WeakPassphraseException
{
pb
.
addUser
(
"Tom"
,
"123456aA"
);
assertTrue
(
pb
.
isUser
(
"Tom"
));
}
//Test3
@Test
public
void
Test23
()
throws
DuplicateUserException
,
WeakPassphraseException
{
pb
.
addUser
(
"Sammy"
,
"123213aAD"
);
assertTrue
(
pb
.
isUser
(
"Sammy"
));
}
//Test4
@Test
public
void
Test4
()
throws
DuplicateUserException
,
WeakPassphraseException
{
pb
.
addUser
(
"Hus"
,
"6786HKJs"
);
assertTrue
(
pb
.
isUser
(
"Hus"
));
}
//Test5
@Test
public
void
Test5
()
throws
DuplicateUserException
,
WeakPassphraseException
{
pb
.
addUser
(
"Sarry"
,
"254hjkH"
);
assertTrue
(
pb
.
isUser
(
"Sarry"
));
}
//Test6
@Test
public
void
Test26
()
throws
DuplicateUserException
,
WeakPassphraseException
{
{
//include a message for better feedback
pb
.
addUser
(
"Ken"
,
"242gfdA"
);
final
int
expected
=
2
;
assertTrue
(
pb
.
isUser
(
"Ken"
));
final
int
actual
=
2
;
assertEquals
(
"Some failure message"
,
expected
,
actual
);
}
}
//Test7
@Test
public
void
Test7
()
throws
DuplicateUserException
,
WeakPassphraseException
{
pb
.
addUser
(
"Dom"
,
"78978hkJ"
);
assertTrue
(
pb
.
isUser
(
"Dom"
));
}
//Test8
@Test
public
void
Test8
()
throws
DuplicateUserException
,
WeakPassphraseException
{
pb
.
addUser
(
"Koll"
,
"123hkjHH"
);
assertTrue
(
pb
.
isUser
(
"Koll"
));
}
}
}
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