Add REST (un)assign ds tag tests (#1899)

Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2024-10-17 15:15:45 +03:00
committed by GitHub
parent 4d0cba7c3b
commit b48a50ee0f
5 changed files with 115 additions and 48 deletions

View File

@@ -34,9 +34,6 @@ import static org.junit.jupiter.api.Assertions.fail;
/**
* Builder class for building certain json strings.
*
*
*
*/
public abstract class JsonBuilder {
@@ -49,9 +46,9 @@ public abstract class JsonBuilder {
return list.toString();
}
public static String controllerIds(final Collection<String> ids) throws JSONException {
public static <T> String toArray(final Collection<T> ids) throws JSONException {
final JSONArray list = new JSONArray();
for (final String smID : ids) {
for (final T smID : ids) {
list.put(smID);
}
return list.toString();