Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 6c00b095 authored by Mihai BOZ's avatar Mihai BOZ
Browse files

added classses for Profile page tests

parent 9340b2cb
No related branches found
No related tags found
No related merge requests found
package ddsl.enums;
import java.util.Random;
public enum SMPThemes {
Default_theme("SMP default theme"),
Blue_theme("Blue theme"),
Indigo_Pink_theme("Indigo & Pink theme"),
Pink_Blue_grey_theme("Pink & Blue grey"),
Purple_Green_theme("Purple & Green theme");
private final String name; // field to store the string value
SMPThemes(String name) { // constructor to assign the string value
this.name = name;
}
public static SMPThemes getRandomTheme() {
SMPThemes[] themes = values();
int size = themes.length;
Random random = new Random();
int index = random.nextInt(size);
return themes[index];
}
public String getName() { // getter method to access the string value
return name;
}
}
package rest;
import utils.TestRunData;
public class RestServicePaths {
private RestServicePaths() {
}
......@@ -15,4 +13,10 @@ public class RestServicePaths {
return "/internal/rest/user/" + currentUserId + "/create";
}
public static String getChangePasswordPath(String currentUserId, String forUserId) {
return "/internal/rest/user/" + currentUserId + "/change-password-for/" + forUserId;
}
}
......@@ -11,4 +11,5 @@ public class Generator {
}
return builder.toString();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment