Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
benjamin.ertl
aai-identity-harmonization
Commits
c0c2dcd4
Commit
c0c2dcd4
authored
Jan 21, 2016
by
benjamin.ertl
Browse files
add odic test
parent
256832a0
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/test/java/edu/kit/scc/test/TestSuite.java
0 → 100644
View file @
c0c2dcd4
/* 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
{
}
src/test/java/edu/kit/scc/test/LdapClientTest
s
.java
→
src/test/java/edu/kit/scc/test/
ldap/
LdapClientTest.java
View file @
c0c2dcd4
...
...
@@ -6,7 +6,7 @@
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.runner.RunWith
;
...
...
@@ -19,7 +19,7 @@ import edu.kit.scc.ldap.LdapClient;
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@SpringApplicationConfiguration
(
classes
=
Application
.
class
)
public
class
LdapClientTest
s
{
public
class
LdapClientTest
{
@Autowired
private
LdapClient
ldapClient
;
...
...
src/test/java/edu/kit/scc/test/oidc/OidcClientTest.java
0 → 100644
View file @
c0c2dcd4
/* 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
);
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment