Commit 8ff2a0f1 authored by Philippe Merle's avatar Philippe Merle
Browse files

Added a JUnit test case for the HelloWorld JNA example.

parent 4eb01013
/***
* OW2 FraSCAti Examples: HelloWorld JNA
* Copyright (C) 2010 INRIA, University of Lille 1
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Contact: frascati@ow2.org
*
* Author: Philippe Merle
*
* Contributor(s):
*/
package org.ow2.frascati.examples.helloworld.jna;
import org.junit.Test;
import org.ow2.frascati.examples.test.FraSCAtiTestCase;
/**
* Test the HelloWorld JNA composite.
*
*/
public class HelloWorldJNATestCase extends FraSCAtiTestCase {
@Override
public String getComposite() {
return "helloworld-jna";
}
@Test
public void testService() {
getService(Runnable.class, "r").run();
}
}
......@@ -64,6 +64,13 @@
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.ow2.frascati.examples.test</groupId>
<artifactId>frascati-test</artifactId>
<version>${frascati.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment