Commit c0c2dcd4 authored by benjamin.ertl's avatar benjamin.ertl
Browse files

add odic test

parent 256832a0
/* Copyright 2016 Karlsruhe Institute of Technology (KIT)
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
*/
package edu.kit.scc.test;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import edu.kit.scc.test.ldap.LdapClientTest;
@RunWith(Suite.class)
@Suite.SuiteClasses({ LdapClientTest.class })
public class TestSuite {
}
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
http://www.apache.org/licenses/LICENSE-2.0 http://www.apache.org/licenses/LICENSE-2.0
*/ */
package edu.kit.scc.test; package edu.kit.scc.test.ldap;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
...@@ -19,7 +19,7 @@ import edu.kit.scc.ldap.LdapClient; ...@@ -19,7 +19,7 @@ import edu.kit.scc.ldap.LdapClient;
@RunWith(SpringJUnit4ClassRunner.class) @RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = Application.class) @SpringApplicationConfiguration(classes = Application.class)
public class LdapClientTests { public class LdapClientTest {
@Autowired @Autowired
private LdapClient ldapClient; private LdapClient ldapClient;
......
/* Copyright 2016 Karlsruhe Institute of Technology (KIT)
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
*/
package edu.kit.scc.test.oidc;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import edu.kit.scc.Application;
import edu.kit.scc.oidc.OidcClient;
@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = Application.class)
public class OidcClientTest {
@Autowired
private OidcClient oidcClient;
@Test
public void requestOIDCTokenTest() {
String authorizationCode = "";
oidcClient.requestTokens(authorizationCode);
}
@Test
public void requestUserInfoTest() {
String accessToken = "";
oidcClient.requestUserInfo(accessToken);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment