
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{ |
|||
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 { |
|||
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.InputStreamReader; |
|||
|
|||
import static foundation.pEp.jniadapter.test.pitytest.utils.TestUtils.*; |
|||
import static foundation.pEp.pitytest.utils.TestUtils.*; |
|||
|
|||
public class TestLogger { |
|||
static { |
@ -1,4 +1,4 @@ |
|||
package foundation.pEp.jniadapter.test.pitytest; |
|||
package foundation.pEp.pitytest; |
|||
|
|||
public enum TestResult { |
|||
UNEVALUATED, |
@ -1,4 +1,4 @@ |
|||
package foundation.pEp.jniadapter.test.pitytest; |
|||
package foundation.pEp.pitytest; |
|||
|
|||
public enum TestState { |
|||
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.jniadapter.test.pitytest.utils.TestUtils.TermColor; |
|||
import static foundation.pEp.jniadapter.test.pitytest.utils.TestUtils.*; |
|||
import static foundation.pEp.pitytest.TestLogger.*; |
|||
import static foundation.pEp.pitytest.utils.TestUtils.TermColor; |
|||
import static foundation.pEp.pitytest.utils.TestUtils.*; |
|||
|
|||
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.jniadapter.test.pitytest.utils.TestUtils.TermColor; |
|||
import static foundation.pEp.jniadapter.test.pitytest.utils.TestUtils.colorString; |
|||
import static foundation.pEp.pitytest.TestLogger.*; |
|||
import static foundation.pEp.pitytest.utils.TestUtils.TermColor; |
|||
import static foundation.pEp.pitytest.utils.TestUtils.colorString; |
|||
|
|||
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 { |
@ -1,7 +1,7 @@ |
|||
package foundation.pEp.jniadapter.test.pitytest.examples.ctxmembers; |
|||
import static foundation.pEp.jniadapter.test.pitytest.TestLogger.*; |
|||
import foundation.pEp.jniadapter.test.pitytest.*; |
|||
import foundation.pEp.jniadapter.test.pitytest.utils.TestUtils; |
|||
package foundation.pEp.pitytest.examples.ctxmembers; |
|||
import static foundation.pEp.pitytest.TestLogger.*; |
|||
import foundation.pEp.pitytest.*; |
|||
import foundation.pEp.pitytest.utils.TestUtils; |
|||
|
|||
|
|||
// Context member object instantiation
|
@ -1,6 +1,6 @@ |
|||
package foundation.pEp.jniadapter.test.pitytest.examples.helloworld; |
|||
import static foundation.pEp.jniadapter.test.pitytest.TestLogger.*; |
|||
import foundation.pEp.jniadapter.test.pitytest.*; |
|||
package foundation.pEp.pitytest.examples.helloworld; |
|||
import static foundation.pEp.pitytest.TestLogger.*; |
|||
import foundation.pEp.pitytest.*; |
|||
|
|||
|
|||
class HelloWorldTestContext extends AbstractTestContext { |
@ -1,6 +1,6 @@ |
|||
package foundation.pEp.jniadapter.test.pitytest.examples.testsuite; |
|||
import static foundation.pEp.jniadapter.test.pitytest.TestLogger.*; |
|||
import foundation.pEp.jniadapter.test.pitytest.*; |
|||
package foundation.pEp.pitytest.examples.testsuite; |
|||
import static foundation.pEp.pitytest.TestLogger.*; |
|||
import foundation.pEp.pitytest.*; |
|||
|
|||
class TestSuiteContext extends AbstractTestContext { |
|||
String name; |
@ -1,4 +1,4 @@ |
|||
package foundation.pEp.jniadapter.test.pitytest.utils; |
|||
package foundation.pEp.pitytest.utils; |
|||
|
|||
public class Pair<K, V> { |
|||
private K key = null; |
Loading…
Reference in new issue