Skip to content

Commit

Permalink
Added some classes from units4j to prepare archiving that project
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-schnell committed Feb 11, 2024
1 parent 9ecc6d0 commit e1632c9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/fuin/units4j/MultipleCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
*
* @param <CONTEXT>
* Type of the test context.
*
* @deprecated Use class with same name from <a href="https://github.com/fuinorg/utils4j">Utils4J</a>.
*/
@Deprecated
public final class MultipleCommands<CONTEXT> implements TestCommand<CONTEXT> {

private final List<TestCommand<CONTEXT>> commands;
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/org/fuin/units4j/TestCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@
*
* @param <CONTEXT>
* Type of the context.
*
* @deprecated Use class with same name from <a href="https://github.com/fuinorg/utils4j">Utils4J</a>.
*/
@Deprecated
public interface TestCommand<CONTEXT> {

/**
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/org/fuin/units4j/TestOmitted.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,13 @@

/**
* States that the annotated test class contains no tests by intention. This avoids test failures when test coverage checks are done.
*
* @deprecated Use class with same name from <a href="https://github.com/fuinorg/utils4j">Utils4J</a>.
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Deprecated
public @interface TestOmitted {

/**
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/org/fuin/units4j/Units4JUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,10 @@ public static <T> T unmarshal(@NotNull final JAXBContext ctx, final String xmlDa
* Name of the attribute to set.
* @param value
* Value to set for the attribute.
*
* @deprecated Use Utils4J class that has same method: <a href="https://github.com/fuinorg/utils4j">Utils4J</a>.
*/
@Deprecated
public static void setPrivateField(final Object obj, final String name, final Object value) {
try {
final Field field = obj.getClass().getDeclaredField(name);
Expand Down Expand Up @@ -533,7 +536,10 @@ public static void index(final Indexer indexer, final ClassLoader cl, final Stri
* Attribute name and new value.
*
* @return Replaced content.
*
* @deprecated Use <a href="https://www.xmlunit.org/">XMLUnit</a> and ignore field while comparing result.
*/
@Deprecated
public static String replaceXmlAttr(final String xml, final KV... keyValues) {

final List<String> searchList = new ArrayList<>();
Expand Down

0 comments on commit e1632c9

Please sign in to comment.