diff --git a/com.wudsn.ide.base/src/com/wudsn/ide/base/common/Test.java b/com.wudsn.ide.base/src/com/wudsn/ide/base/common/Test.java index 6df74a66..3a07b309 100644 --- a/com.wudsn.ide.base/src/com/wudsn/ide/base/common/Test.java +++ b/com.wudsn.ide.base/src/com/wudsn/ide/base/common/Test.java @@ -1,13 +1,29 @@ +/** + * Copyright (C) 2009 - 2021 Peter Dell + * + * This file is part of WUDSN IDE. + * + * WUDSN IDE is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * WUDSN IDE is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with WUDSN IDE. If not, see . + */ package com.wudsn.ide.base.common; -import static java.lang.annotation.ElementType.METHOD; -import static java.lang.annotation.RetentionPolicy.RUNTIME; +public final class Test { -import java.lang.annotation.Retention; -import java.lang.annotation.Target; - -@Retention(RUNTIME) -@Target(METHOD) -public @interface Test { + private Test() { + } + public static void log(String message) { + System.out.println(message); + } } diff --git a/com.wudsn.ide.base/src/com/wudsn/ide/base/common/TestMethod.java b/com.wudsn.ide.base/src/com/wudsn/ide/base/common/TestMethod.java new file mode 100644 index 00000000..0cc2227e --- /dev/null +++ b/com.wudsn.ide.base/src/com/wudsn/ide/base/common/TestMethod.java @@ -0,0 +1,36 @@ +/** + * Copyright (C) 2009 - 2021 Peter Dell + * + * This file is part of WUDSN IDE. + * + * WUDSN IDE is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * WUDSN IDE is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with WUDSN IDE. If not, see . + */ +package com.wudsn.ide.base.common; + +import static java.lang.annotation.ElementType.METHOD; +import static java.lang.annotation.RetentionPolicy.RUNTIME; + +import java.lang.annotation.Retention; +import java.lang.annotation.Target; + +/** + * Marker interface for test method to be executed as unit tests + * @author Peter Dell + * + */ +@Retention(RUNTIME) +@Target(METHOD) +public @interface TestMethod { + +}