Updated TestDefaultSystemScopeService.java

Changed few test names and @Test getReserveScopes()
pull/1367/head
Aishwarya Gosavi 2018-02-26 20:21:02 -05:00 committed by GitHub
parent 1da511c6a7
commit f1c0b3a460
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -201,7 +201,7 @@ public class TestDefaultSystemScopeService {
} }
@Test @Test
public void getById() { public void getById_notfound() {
// check null condition // check null condition
@ -211,7 +211,7 @@ public class TestDefaultSystemScopeService {
} }
@Test @Test
public void getByValue() { public void getByValue_notfound() {
// check null condition // check null condition
@ -221,20 +221,20 @@ public class TestDefaultSystemScopeService {
} }
@Test @Test
public void save() { public void save_scope() {
// check null condition // check null condition
assertThat(service.save(defaultScope1), is(nullValue())); assertThat(service.save(defaultScope1), is(nullValue()));
assertThat(service.save(mySystemScope), equalTo(mySystemScope));
} }
@Test @Test
public void getReserved() { public void getReserveScopes() {
//Set<SystemScope> restricted = Sets.newHashSet(defaultScope1, defaultScope2, restrictedScope1); Set<SystemScope> reserved = SystemScopeService.reservedScopes;
Set<SystemScope> reserved = service.getReserved();
assertThat(service.getReserved(), equalTo(reserved)); assertThat(service.getReserved(), equalTo(reserved));
} }