From 29e4953c02610c531df95a10db69e6b798022ac4 Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Sat, 22 Aug 2015 13:40:47 +0200 Subject: [PATCH] adding tests --- test/Makefile | 13 +++++++++++++ test/Testing.java | 16 ++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 test/Makefile create mode 100644 test/Testing.java diff --git a/test/Makefile b/test/Makefile new file mode 100644 index 0000000..c36119e --- /dev/null +++ b/test/Makefile @@ -0,0 +1,13 @@ +CLASSPATH=.:../src +VM=java -Djava.library.path=../src + +test: Testing.class + $(VM) Testing + +%.class: %.java + javac $< + +.PHONY: clean + +clean: + rm -f *.class diff --git a/test/Testing.java b/test/Testing.java new file mode 100644 index 0000000..13668f4 --- /dev/null +++ b/test/Testing.java @@ -0,0 +1,16 @@ +import org.pEp.jniadapter.Engine; +import org.pEp.jniadapter.pEpException; + +class Testing { + public static void main(String[] args) { + try { + Engine e = new Engine(); + } + catch (pEpException ex) { + System.out.println("Cannot load"); + return; + } + System.out.println("Test loaded"); + } +} +