
62 changed files with 230 additions and 183 deletions
@ -1,4 +1,4 @@ |
|||||
package foundation.pEp.jniadapter.test.pitytest; |
package foundation.pEp.pitytest; |
||||
|
|
||||
public abstract class AbstractTestContext implements TestContextInterface{ |
public abstract class AbstractTestContext implements TestContextInterface{ |
||||
private boolean isInitialized = false; |
private boolean isInitialized = false; |
@ -0,0 +1,24 @@ |
|||||
|
include Makefile.conf |
||||
|
|
||||
|
PKGNAME=pitytest |
||||
|
|
||||
|
JAVA_CLASSES = $(JAVA_CLASSES_PITYTEST) |
||||
|
|
||||
|
.PHONY: all compile clean |
||||
|
|
||||
|
all: compile |
||||
|
|
||||
|
#run: compile clean-pep-home
|
||||
|
# cd $(JAVA_CWD);HOME=$(JAVA_PEP_HOME_DIR) $(JAVA) $(JAVA_PKG_BASENAME).$(PKGNAME).TestMain
|
||||
|
|
||||
|
compile: $(JAVA_CLASSES) |
||||
|
|
||||
|
%.class: %.java |
||||
|
cd $(JAVA_CWD);javac -cp $(CLASSPATH) $(JAVA_PKG_BASEPATH)/$(PKGNAME)/$< |
||||
|
|
||||
|
clean: |
||||
|
rm -f $(JAVA_CLASSES) |
||||
|
rm -f *.class |
||||
|
rm -f *.log |
||||
|
rm -Rf .gnupg |
||||
|
rm -Rf .lldb |
@ -0,0 +1,17 @@ |
|||||
|
JAVA_PKG_BASENAME=foundation.pEp |
||||
|
JAVA_PKG_BASEPATH=foundation/pEp |
||||
|
CLASSPATH=. |
||||
|
JAVA=java -enableassertions |
||||
|
JAVA_CWD=../../../ |
||||
|
|
||||
|
JAVA_CLASSES_PITYTEST= \
|
||||
|
TestSuite.class \
|
||||
|
TestUnit.class \
|
||||
|
TestContextInterface.class \
|
||||
|
AbstractTestContext.class \
|
||||
|
TestLogger.class \
|
||||
|
utils/TestUtils.class \
|
||||
|
utils/Pair.class \
|
||||
|
TestState.class \
|
||||
|
TestResult.class |
||||
|
|
@ -1,4 +1,4 @@ |
|||||
package foundation.pEp.jniadapter.test.pitytest; |
package foundation.pEp.pitytest; |
||||
|
|
||||
public interface TestContextInterface { |
public interface TestContextInterface { |
||||
void init() throws Throwable; |
void init() throws Throwable; |
@ -1,11 +1,11 @@ |
|||||
package foundation.pEp.jniadapter.test.pitytest; |
package foundation.pEp.pitytest; |
||||
|
|
||||
import foundation.pEp.jniadapter.test.pitytest.utils.TestUtils; |
import foundation.pEp.pitytest.utils.TestUtils; |
||||
|
|
||||
import java.io.BufferedReader; |
import java.io.BufferedReader; |
||||
import java.io.InputStreamReader; |
import java.io.InputStreamReader; |
||||
|
|
||||
import static foundation.pEp.jniadapter.test.pitytest.utils.TestUtils.*; |
import static foundation.pEp.pitytest.utils.TestUtils.*; |
||||
|
|
||||
public class TestLogger { |
public class TestLogger { |
||||
static { |
static { |
@ -1,4 +1,4 @@ |
|||||
package foundation.pEp.jniadapter.test.pitytest; |
package foundation.pEp.pitytest; |
||||
|
|
||||
public enum TestResult { |
public enum TestResult { |
||||
UNEVALUATED, |
UNEVALUATED, |
@ -1,4 +1,4 @@ |
|||||
package foundation.pEp.jniadapter.test.pitytest; |
package foundation.pEp.pitytest; |
||||
|
|
||||
public enum TestState { |
public enum TestState { |
||||
UNEVALUATED, |
UNEVALUATED, |
@ -1,8 +1,8 @@ |
|||||
package foundation.pEp.jniadapter.test.pitytest; |
package foundation.pEp.pitytest; |
||||
|
|
||||
import static foundation.pEp.jniadapter.test.pitytest.TestLogger.*; |
import static foundation.pEp.pitytest.TestLogger.*; |
||||
import static foundation.pEp.jniadapter.test.pitytest.utils.TestUtils.TermColor; |
import static foundation.pEp.pitytest.utils.TestUtils.TermColor; |
||||
import static foundation.pEp.jniadapter.test.pitytest.utils.TestUtils.*; |
import static foundation.pEp.pitytest.utils.TestUtils.*; |
||||
|
|
||||
import java.util.ArrayList; |
import java.util.ArrayList; |
||||
|
|
@ -1,10 +1,10 @@ |
|||||
package foundation.pEp.jniadapter.test.pitytest; |
package foundation.pEp.pitytest; |
||||
|
|
||||
import foundation.pEp.jniadapter.test.pitytest.utils.TestUtils; |
import foundation.pEp.pitytest.utils.TestUtils; |
||||
|
|
||||
import static foundation.pEp.jniadapter.test.pitytest.TestLogger.*; |
import static foundation.pEp.pitytest.TestLogger.*; |
||||
import static foundation.pEp.jniadapter.test.pitytest.utils.TestUtils.TermColor; |
import static foundation.pEp.pitytest.utils.TestUtils.TermColor; |
||||
import static foundation.pEp.jniadapter.test.pitytest.utils.TestUtils.colorString; |
import static foundation.pEp.pitytest.utils.TestUtils.colorString; |
||||
|
|
||||
import java.util.function.Consumer; |
import java.util.function.Consumer; |
||||
|
|
@ -1,8 +1,8 @@ |
|||||
package foundation.pEp.jniadapter.test.pitytest.examples.ctxinitfail; |
package foundation.pEp.pitytest.examples.ctxinitfail; |
||||
|
|
||||
import static foundation.pEp.jniadapter.test.pitytest.TestLogger.*; |
import static foundation.pEp.pitytest.TestLogger.*; |
||||
|
|
||||
import foundation.pEp.jniadapter.test.pitytest.*; |
import foundation.pEp.pitytest.*; |
||||
|
|
||||
|
|
||||
class CtxInitFailContext extends AbstractTestContext { |
class CtxInitFailContext extends AbstractTestContext { |
@ -1,7 +1,7 @@ |
|||||
package foundation.pEp.jniadapter.test.pitytest.examples.ctxmembers; |
package foundation.pEp.pitytest.examples.ctxmembers; |
||||
import static foundation.pEp.jniadapter.test.pitytest.TestLogger.*; |
import static foundation.pEp.pitytest.TestLogger.*; |
||||
import foundation.pEp.jniadapter.test.pitytest.*; |
import foundation.pEp.pitytest.*; |
||||
import foundation.pEp.jniadapter.test.pitytest.utils.TestUtils; |
import foundation.pEp.pitytest.utils.TestUtils; |
||||
|
|
||||
|
|
||||
// Context member object instantiation
|
// Context member object instantiation
|
@ -1,6 +1,6 @@ |
|||||
package foundation.pEp.jniadapter.test.pitytest.examples.helloworld; |
package foundation.pEp.pitytest.examples.helloworld; |
||||
import static foundation.pEp.jniadapter.test.pitytest.TestLogger.*; |
import static foundation.pEp.pitytest.TestLogger.*; |
||||
import foundation.pEp.jniadapter.test.pitytest.*; |
import foundation.pEp.pitytest.*; |
||||
|
|
||||
|
|
||||
class HelloWorldTestContext extends AbstractTestContext { |
class HelloWorldTestContext extends AbstractTestContext { |
@ -1,6 +1,6 @@ |
|||||
package foundation.pEp.jniadapter.test.pitytest.examples.testsuite; |
package foundation.pEp.pitytest.examples.testsuite; |
||||
import static foundation.pEp.jniadapter.test.pitytest.TestLogger.*; |
import static foundation.pEp.pitytest.TestLogger.*; |
||||
import foundation.pEp.jniadapter.test.pitytest.*; |
import foundation.pEp.pitytest.*; |
||||
|
|
||||
class TestSuiteContext extends AbstractTestContext { |
class TestSuiteContext extends AbstractTestContext { |
||||
String name; |
String name; |
@ -1,4 +1,4 @@ |
|||||
package foundation.pEp.jniadapter.test.pitytest.utils; |
package foundation.pEp.pitytest.utils; |
||||
|
|
||||
public class Pair<K, V> { |
public class Pair<K, V> { |
||||
private K key = null; |
private K key = null; |
Loading…
Reference in new issue