summaryrefslogtreecommitdiffstats
path: root/auth/auth-service/src
diff options
context:
space:
mode:
Diffstat (limited to 'auth/auth-service/src')
-rw-r--r--auth/auth-service/src/test/java/org/onap/aaf/authz/service/mapper/JU_Mapper_2_0.java84
1 files changed, 42 insertions, 42 deletions
diff --git a/auth/auth-service/src/test/java/org/onap/aaf/authz/service/mapper/JU_Mapper_2_0.java b/auth/auth-service/src/test/java/org/onap/aaf/authz/service/mapper/JU_Mapper_2_0.java
index b9f31220..09cc709b 100644
--- a/auth/auth-service/src/test/java/org/onap/aaf/authz/service/mapper/JU_Mapper_2_0.java
+++ b/auth/auth-service/src/test/java/org/onap/aaf/authz/service/mapper/JU_Mapper_2_0.java
@@ -96,7 +96,7 @@ import aaf.v2_0.UserRoles;
@RunWith(MockitoJUnitRunner.class)
public class JU_Mapper_2_0 {
- private static final String USER = "John";
+ private static final String USER = "John";
private Mapper_2_0 mapper;
@Mock
@@ -650,13 +650,13 @@ public class JU_Mapper_2_0 {
*
*/
public static class ImmutableMap {
- public static <T,U> Map<T,U> of(Object ... tag_value) {
- Map<T,U> rv = new HashMap<>();
- for(int i=0;i<tag_value.length-1;i+=2) {
- rv.put((T)tag_value[i],(U)tag_value[i+1]);
- }
- return rv;
- }
+ public static <T,U> Map<T,U> of(Object ... tag_value) {
+ Map<T,U> rv = new HashMap<>();
+ for(int i=0;i<tag_value.length-1;i+=2) {
+ rv.put((T)tag_value[i],(U)tag_value[i+1]);
+ }
+ return rv;
+ }
}
@@ -666,13 +666,13 @@ public class JU_Mapper_2_0 {
*
*/
public static class Iterables {
- public static <T> T getOnlyElement(List<T> lt) {
- if(lt.isEmpty()) {
- return null;
- } else {
- return lt.get(0);
- }
- }
+ public static <T> T getOnlyElement(List<T> lt) {
+ if(lt.isEmpty()) {
+ return null;
+ } else {
+ return lt.get(0);
+ }
+ }
}
/**
@@ -681,25 +681,25 @@ public class JU_Mapper_2_0 {
*
*/
public static class Lists {
- @SuppressWarnings("unchecked")
- public static <T> List<T> newArrayList(Collection<T> ... init ) {
- List<T> rv = new ArrayList<>();
- for(Collection<T> o : init) {
- for(T t : o) {
- rv.add(t);
- }
- }
- return rv;
- }
-
- @SuppressWarnings("unchecked")
- public static <T> List<T> newArrayList(Object ... init ) {
- List<T> rv = new ArrayList<>();
- for(Object o : init) {
- rv.add((T)o);
- }
- return rv;
- }
+ @SuppressWarnings("unchecked")
+ public static <T> List<T> newArrayList(Collection<T> ... init ) {
+ List<T> rv = new ArrayList<>();
+ for(Collection<T> o : init) {
+ for(T t : o) {
+ rv.add(t);
+ }
+ }
+ return rv;
+ }
+
+ @SuppressWarnings("unchecked")
+ public static <T> List<T> newArrayList(Object ... init ) {
+ List<T> rv = new ArrayList<>();
+ for(Object o : init) {
+ rv.add((T)o);
+ }
+ return rv;
+ }
}
@@ -709,13 +709,13 @@ public class JU_Mapper_2_0 {
*
*/
public static class Sets {
- @SuppressWarnings("unchecked")
- public static <T> Set<T> newHashSet(Object ... init ) {
- Set<T> rv = new HashSet<>();
- for(Object o : init) {
- rv.add((T)o);
- }
- return rv;
- }
+ @SuppressWarnings("unchecked")
+ public static <T> Set<T> newHashSet(Object ... init ) {
+ Set<T> rv = new HashSet<>();
+ for(Object o : init) {
+ rv.add((T)o);
+ }
+ return rv;
+ }
}
}