Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
whats-open-android
Commits
1e866815
Commit
1e866815
authored
Feb 03, 2017
by
Robert Hitt
Browse files
Removed tests for functions that no longer exist
parent
ae9c73aa
Pipeline
#816
passed with stages
in 4 minutes and 48 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
app/src/test/java/srct/whatsopen/NotificationPresenterUnitTest.java
View file @
1e866815
...
...
@@ -39,41 +39,4 @@ public class NotificationPresenterUnitTest {
assertFalse
(
hasPassed
);
}
@Test
public
void
testSetFromNotificationSettings
()
{
NotificationSettings
n
=
new
NotificationSettings
(
true
,
true
,
true
,
true
,
true
,
true
);
// Set up expected set
Set
<
String
>
expected
=
new
HashSet
<>(
6
);
expected
.
add
(
"opening"
);
expected
.
add
(
"closing"
);
expected
.
add
(
"interval_on"
);
expected
.
add
(
"interval_15"
);
expected
.
add
(
"interval_30"
);
expected
.
add
(
"interval_hour"
);
Set
<
String
>
actual
=
mPresenter
.
getSetFromNotificationSettings
(
n
);
assertEquals
(
expected
,
actual
);
}
@Test
public
void
testNotificationSettingsFromSet
()
{
NotificationSettings
expected
=
new
NotificationSettings
(
true
,
true
,
true
,
true
,
true
,
true
);
// Set up set
Set
<
String
>
set
=
new
HashSet
<>(
6
);
set
.
add
(
"opening"
);
set
.
add
(
"closing"
);
set
.
add
(
"interval_on"
);
set
.
add
(
"interval_15"
);
set
.
add
(
"interval_30"
);
set
.
add
(
"interval_hour"
);
NotificationSettings
actual
=
mPresenter
.
getNotificationSettingsFromSet
(
set
);
assertEquals
(
expected
,
actual
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment