-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Antoine MAZEAS <[email protected]>
- Loading branch information
1 parent
8246a4d
commit ae891b3
Showing
8 changed files
with
151 additions
and
165 deletions.
There are no files selected for viewing
227 changes: 112 additions & 115 deletions
227
openbas-api/src/test/java/io/openbas/rest/exercise/ExerciseApiExportTest.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 8 additions & 9 deletions
17
openbas-api/src/test/java/io/openbas/utils/fixtures/VariableFixture.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
package io.openbas.utils.fixtures; | ||
|
||
import io.openbas.database.model.Variable; | ||
|
||
import java.util.UUID; | ||
|
||
public class VariableFixture { | ||
public static Variable getVariable() { | ||
Variable var = new Variable(); | ||
var.setId(UUID.randomUUID().toString()); | ||
var.setKey("variable_key"); | ||
var.setValue("variable value"); | ||
var.setDescription("variable description"); | ||
return var; | ||
} | ||
public static Variable getVariable() { | ||
Variable var = new Variable(); | ||
var.setId(UUID.randomUUID().toString()); | ||
var.setKey("variable_key"); | ||
var.setValue("variable value"); | ||
var.setDescription("variable description"); | ||
return var; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 4 additions & 6 deletions
10
openbas-api/src/test/java/io/openbas/utils/fixtures/composers/ComposerBase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
package io.openbas.utils.fixtures.composers; | ||
|
||
import io.openbas.database.model.Document; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class ComposerBase<T> { | ||
public List<T> generatedItems = new ArrayList<>(); | ||
public List<T> generatedItems = new ArrayList<>(); | ||
|
||
public void reset() { | ||
generatedItems.clear(); | ||
} | ||
public void reset() { | ||
generatedItems.clear(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters