Updated TestDefaultSystemScopeService.java
Changed few test names and @Test getReserveScopes()pull/1367/head
parent
1da511c6a7
commit
f1c0b3a460
|
@ -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));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue