From eca62f2d3605eb315260a0034003f989dd03d557 Mon Sep 17 00:00:00 2001 From: William Kim Date: Fri, 21 Jun 2013 09:41:30 -0400 Subject: [PATCH] initial commit for TestDefaultSystemScopeService. --- .../impl/TestDefaultSystemScopeService.java | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 openid-connect-server/src/test/java/org/mitre/oauth2/service/impl/TestDefaultSystemScopeService.java 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 new file mode 100644 index 000000000..d43ca24a8 --- /dev/null +++ b/openid-connect-server/src/test/java/org/mitre/oauth2/service/impl/TestDefaultSystemScopeService.java @@ -0,0 +1,58 @@ +/******************************************************************************* + * Copyright 2013 The MITRE Corporation + * and the MIT Kerberos and Internet Trust Consortium + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ******************************************************************************/ +package org.mitre.oauth2.service.impl; + +import static org.junit.Assert.*; +import static org.hamcrest.CoreMatchers.*; + +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.mitre.oauth2.repository.SystemScopeRepository; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.Mockito; +import org.mockito.runners.MockitoJUnitRunner; + +/** + * @author wkim + * + */ +@RunWith(MockitoJUnitRunner.class) +public class TestDefaultSystemScopeService { + + // TODO test fixtures + + @Mock + private SystemScopeRepository repository; + + @InjectMocks + private DefaultSystemScopeService service; + + @Before + public void prepare() { + Mockito.reset(repository); + + // TODO set up test fixtures + } + + @Test + public void test() { + assertTrue("Not yet implemented", true); + } + +}