Project

General

Profile

« Previous | Next » 

Revision 7538

Added by Jing Tao about 11 years ago

add the metacat-index component. It has nothing right now.

View differences:

metacat-index/src/test/java/edu/ucsb/nceas/metacat/index/AppTest.java
1
package edu.ucsb.nceas.metacat.index;
2

  
3
import junit.framework.Test;
4
import junit.framework.TestCase;
5
import junit.framework.TestSuite;
6

  
7
/**
8
 * Unit test for simple App.
9
 */
10
public class AppTest 
11
    extends TestCase
12
{
13
    /**
14
     * Create the test case
15
     *
16
     * @param testName name of the test case
17
     */
18
    public AppTest( String testName )
19
    {
20
        super( testName );
21
    }
22

  
23
    /**
24
     * @return the suite of tests being tested
25
     */
26
    public static Test suite()
27
    {
28
        return new TestSuite( AppTest.class );
29
    }
30

  
31
    /**
32
     * Rigourous Test :-)
33
     */
34
    public void testApp()
35
    {
36
        assertTrue( true );
37
    }
38
}
metacat-index/src/main/java/edu/ucsb/nceas/metacat/index/App.java
1
package edu.ucsb.nceas.metacat.index;
2

  
3
/**
4
 * Hello world!
5
 *
6
 */
7
public class App 
8
{
9
    public static void main( String[] args )
10
    {
11
        System.out.println( "Hello World!" );
12
    }
13
}
metacat-index/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
  <modelVersion>4.0.0</modelVersion>
4
  <groupId>edu.ucsb.nceas.metacat.index</groupId>
5
  <artifactId>metacat-index</artifactId>
6
  <packaging>jar</packaging>
7
  <version>1.0-SNAPSHOT</version>
8
  <name>metacat-index</name>
9
  <url>http://maven.apache.org</url>
10
  <dependencies>
11
    <dependency>
12
      <groupId>junit</groupId>
13
      <artifactId>junit</artifactId>
14
      <version>3.8.1</version>
15
      <scope>test</scope>
16
    </dependency>
17
  </dependencies>
18
</project>

Also available in: Unified diff