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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lin Fan
SWEN90006-A1-2019
Commits
dc305217
Commit
dc305217
authored
5 years ago
by
Lin Fan
Browse files
Options
Downloads
Patches
Plain Diff
Update BoundaryTests.java
parent
778eb43f
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#5311
failed
5 years ago
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
+94
-0
94 additions, 0 deletions
tests/Boundary/swen90006/passbook/BoundaryTests.java
with
94 additions
and
0 deletions
tests/Boundary/swen90006/passbook/BoundaryTests.java
+
94
−
0
View file @
dc305217
...
...
@@ -22,4 +22,98 @@ public class BoundaryTests
final
int
actual
=
2
;
assertEquals
(
"Some failure message"
,
expected
,
actual
);
}
@Test
(
expected
=
WeakPassphraseException
.
class
)
public
void
addUserEC2Offpoint1Test
()
throws
DuplicateUserException
,
WeakPassphraseException
{
pb
.
addUser
(
"passbookUsername2"
,
"Abbb123"
);
}
@Test
(
expected
=
WeakPassphraseException
.
class
)
public
void
addUserEC2Offpoint2Test
()
throws
DuplicateUserException
,
WeakPassphraseException
{
pb
.
addUser
(
"passbookUsername2"
,
""
);
}
@Test
public
void
addUserEC3Onpoint1Test
()
throws
DuplicateUserException
,
WeakPassphraseException
{
pb
.
addUser
(
"passbookUsername3"
,
"AAaa00000"
);
assertTrue
(
pb
.
isUser
(
"passbookUsername3"
));
}
@Test
public
void
addUserEC3Onpoint2Test
()
throws
DuplicateUserException
,
WeakPassphraseException
{
pb
.
addUser
(
"passbookUsername3"
,
"ZZzz99999"
);
assertTrue
(
pb
.
isUser
(
"passbookUsername3"
));
}
@Test
(
expected
=
WeakPassphraseException
.
class
)
public
void
addUserEC3Offpoint1Test
()
throws
DuplicateUserException
,
WeakPassphraseException
{
pb
.
addUser
(
"passbookUsernamee"
,
"``//////@@"
);
}
@Test
(
expected
=
WeakPassphraseException
.
class
)
public
void
addUserEC3Offpoint2Test
()
throws
DuplicateUserException
,
WeakPassphraseException
{
pb
.
addUser
(
"passbookUsernamee"
,
"{{::::::[[["
);
}
@Test
(
expected
=
WeakPassphraseException
.
class
)
public
void
addUserEC4Offpoint1Test
()
throws
DuplicateUserException
,
WeakPassphraseException
{
pb
.
addUser
(
"passbookUsernamee"
,
"@@`````0000"
);
}
@Test
(
expected
=
WeakPassphraseException
.
class
)
public
void
addUserEC4Offpoint2Test
()
throws
DuplicateUserException
,
WeakPassphraseException
{
pb
.
addUser
(
"passbookUsernamee"
,
"[[[{{{{{{999999"
);
}
@Test
(
expected
=
WeakPassphraseException
.
class
)
public
void
addUserEC5Offpoint1Test
()
throws
DuplicateUserException
,
WeakPassphraseException
{
pb
.
addUser
(
"passbookUsernamee"
,
"@@/////aaaaa"
);
}
@Test
(
expected
=
WeakPassphraseException
.
class
)
public
void
addUserEC5Offpoint2Test
()
throws
DuplicateUserException
,
WeakPassphraseException
{
pb
.
addUser
(
"passbookUsernamee"
,
"[[[[:::::::zz"
);
}
@Test
(
expected
=
WeakPassphraseException
.
class
)
public
void
addUserEC6Offpoint1Test
()
throws
DuplicateUserException
,
WeakPassphraseException
{
pb
.
addUser
(
"passbookUsernamee"
,
"````///////AA"
);
}
@Test
(
expected
=
WeakPassphraseException
.
class
)
public
void
addUserEC6Offpoint2Test
()
throws
DuplicateUserException
,
WeakPassphraseException
{
pb
.
addUser
(
"passbookUsernamee"
,
"{{{{{::::::ZZ"
);
}
@Test
(
expected
=
WeakPassphraseException
.
class
)
public
void
addUserEC7Offpoint1Test
()
throws
DuplicateUserException
,
WeakPassphraseException
{
pb
.
addUser
(
"passbookUsernamee"
,
"``AAAAA000"
);
}
@Test
(
expected
=
WeakPassphraseException
.
class
)
public
void
addUserEC7Offpoint2Test
()
throws
DuplicateUserException
,
WeakPassphraseException
{
pb
.
addUser
(
"passbookUsernamee"
,
"{{{ZZZZ9999"
);
}
@Test
(
expected
=
WeakPassphraseException
.
class
)
public
void
addUserEC8Offpoint1Test
()
throws
DuplicateUserException
,
WeakPassphraseException
{
pb
.
addUser
(
"passbookUsernamee"
,
"@aaaaa000"
);
}
@Test
(
expected
=
WeakPassphraseException
.
class
)
public
void
addUserEC8Offpoint2Test
()
throws
DuplicateUserException
,
WeakPassphraseException
{
pb
.
addUser
(
"passbookUsernamee"
,
"[[[zzzzz9999"
);
}
@Test
(
expected
=
WeakPassphraseException
.
class
)
public
void
addUserEC9Offpoint1Test
()
throws
DuplicateUserException
,
WeakPassphraseException
{
pb
.
addUser
(
"passbookUsernamee"
,
"aaa///AAAA"
);
}
@Test
(
expected
=
WeakPassphraseException
.
class
)
public
void
addUserEC9Offpoint2Test
()
throws
DuplicateUserException
,
WeakPassphraseException
{
pb
.
addUser
(
"passbookUsernamee"
,
"zzz::::::ZZZ"
);
}
}
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