From f26f6db319340fddf77725ae705ae3a095ce9d92 Mon Sep 17 00:00:00 2001 From: Aishwarya Gosavi Date: Sun, 4 Mar 2018 11:49:24 -0500 Subject: [PATCH] Update TestDefaultSystemScopeService.java --- .../impl/TestDefaultSystemScopeService.java | 56 +------------------ 1 file changed, 1 insertion(+), 55 deletions(-) diff --git a/openid-connect-server/src/test/java/org/mitre/oauth2/service/impl/TestDefaultSystemScopeService.java b/openid-connect-server/src/test/java/org/mitre/oauth2/service/impl/TestDefaultSystemScopeService.java index ba333eeda..808d96b58 100644 --- a/openid-connect-server/src/test/java/org/mitre/oauth2/service/impl/TestDefaultSystemScopeService.java +++ b/openid-connect-server/src/test/java/org/mitre/oauth2/service/impl/TestDefaultSystemScopeService.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright 2017 The MIT Internet Trust Consortium + * Copyright 2018 The MIT Internet Trust Consortium * * Portions copyright 2011-2013 The MITRE Corporation * @@ -184,60 +184,6 @@ public class TestDefaultSystemScopeService { // extra scope (fail) assertThat(service.scopesMatch(expected, actualBad), is(false)); - } - - @Test - public void getremoveRestrictedAndReservedScopes() { - - Set restrictedAndReservedScopes = Sets.newHashSet(defaultDynScope1, defaultDynScope2, dynScope1); - assertThat(service.removeRestrictedAndReservedScopes(allScopes),equalTo(restrictedAndReservedScopes)); - } - - @Test - public void getremoveReservedScopes() { - Set removeReservedScopes = Sets.newHashSet(defaultDynScope2, defaultDynScope1, defaultScope2,restrictedScope1,defaultScope1,dynScope1); - assertThat(service.removeReservedScopes(allScopes), equalTo(removeReservedScopes)); - } - - @Test - public void getById_notfound() { - - // check null condition - - assertThat(service.getById((long) 60), is(nullValue())); - - - } - - @Test - public void getByValue_notfound() { - - // check null condition - - assertThat(service.getByValue("defaultDynScope1String"), is(nullValue())); - - - } - - @Test - public void save_null() { - - // check null condition - - assertThat(service.save(defaultScope1), is(nullValue())); - } - - @Test - public void save_value(){ - assertThat(service.save(mySystemScope), equalTo(mySystemScope)) - } - - @Test - public void getReserveScopes() { - assertThat(service.getReserved(), equalTo(SystemScopeService.reservedScopes)); - - } - }