java-callgraph

Simple maven project

5/27/2011 3:24:20 AM

Details

pom.xml 25(+25 -0)

diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..e111650
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,25 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>gr.gousiosg</groupId>
+  <artifactId>jcallgraph</artifactId>
+  <version>0.1-SNAPSHOT</version>
+  <packaging>jar</packaging>
+
+  <name>jcallgraph</name>
+  <url>http://maven.apache.org</url>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+</project>
diff --git a/src/main/java/gr/gousiosg/callgraph/App.java b/src/main/java/gr/gousiosg/callgraph/App.java
new file mode 100644
index 0000000..b48c0d7
--- /dev/null
+++ b/src/main/java/gr/gousiosg/callgraph/App.java
@@ -0,0 +1,13 @@
+package gr.gousiosg.callgraph;
+
+/**
+ * Hello world!
+ *
+ */
+public class App 
+{
+    public static void main( String[] args )
+    {
+        System.out.println( "Hello World!" );
+    }
+}
diff --git a/src/test/java/gr/gousiosg/callgraph/AppTest.java b/src/test/java/gr/gousiosg/callgraph/AppTest.java
new file mode 100644
index 0000000..af4ca09
--- /dev/null
+++ b/src/test/java/gr/gousiosg/callgraph/AppTest.java
@@ -0,0 +1,38 @@
+package gr.gousiosg.callgraph;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest 
+    extends TestCase
+{
+    /**
+     * Create the test case
+     *
+     * @param testName name of the test case
+     */
+    public AppTest( String testName )
+    {
+        super( testName );
+    }
+
+    /**
+     * @return the suite of tests being tested
+     */
+    public static Test suite()
+    {
+        return new TestSuite( AppTest.class );
+    }
+
+    /**
+     * Rigourous Test :-)
+     */
+    public void testApp()
+    {
+        assertTrue( true );
+    }
+}