Made changes in save_scope() and getReserveScopes()
parent
f1c0b3a460
commit
a7ce3eb282
|
@ -221,21 +221,21 @@ public class TestDefaultSystemScopeService {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void save_scope() {
|
public void save_null() {
|
||||||
|
|
||||||
// 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
|
||||||
|
public void save_value(){
|
||||||
|
assertThat(service.save(mySystemScope), equalTo(mySystemScope))
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void getReserveScopes() {
|
public void getReserveScopes() {
|
||||||
Set<SystemScope> reserved = SystemScopeService.reservedScopes;
|
assertThat(service.getReserved(), equalTo(SystemScopeService.reservedScopes));
|
||||||
assertThat(service.getReserved(), equalTo(reserved));
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue