You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by al...@apache.org on 2007/01/09 23:27:07 UTC
svn commit: r494626 - in
/incubator/uima/uimaj/trunk/uimaj-document-annotation: ./ src/ src/main/
src/main/java/ src/main/java/org/ src/main/java/org/apache/
src/main/java/org/apache/uima/ src/main/java/org/apache/uima/jcas/
src/main/java/org/apache/ui...
Author: alally
Date: Tue Jan 9 14:27:06 2007
New Revision: 494626
URL: http://svn.apache.org/viewvc?view=rev&rev=494626
Log: (empty)
Added:
incubator/uima/uimaj/trunk/uimaj-document-annotation/pom.xml
incubator/uima/uimaj/trunk/uimaj-document-annotation/src/
incubator/uima/uimaj/trunk/uimaj-document-annotation/src/main/
incubator/uima/uimaj/trunk/uimaj-document-annotation/src/main/java/
incubator/uima/uimaj/trunk/uimaj-document-annotation/src/main/java/org/
incubator/uima/uimaj/trunk/uimaj-document-annotation/src/main/java/org/apache/
incubator/uima/uimaj/trunk/uimaj-document-annotation/src/main/java/org/apache/uima/
incubator/uima/uimaj/trunk/uimaj-document-annotation/src/main/java/org/apache/uima/jcas/
incubator/uima/uimaj/trunk/uimaj-document-annotation/src/main/java/org/apache/uima/jcas/tcas/
incubator/uima/uimaj/trunk/uimaj-document-annotation/src/main/java/org/apache/uima/jcas/tcas/DocumentAnnotation.java
- copied unchanged from r494143, incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/tcas/DocumentAnnotation.java
incubator/uima/uimaj/trunk/uimaj-document-annotation/src/main/java/org/apache/uima/jcas/tcas/DocumentAnnotation_Type.java
- copied unchanged from r494143, incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/tcas/DocumentAnnotation_Type.java
incubator/uima/uimaj/trunk/uimaj-document-annotation/src/test/
incubator/uima/uimaj/trunk/uimaj-document-annotation/src/test/java/
incubator/uima/uimaj/trunk/uimaj-document-annotation/src/test/java/org/
incubator/uima/uimaj/trunk/uimaj-document-annotation/src/test/java/org/apache/
incubator/uima/uimaj/trunk/uimaj-document-annotation/src/test/java/org/apache/uima/
incubator/uima/uimaj/trunk/uimaj-document-annotation/src/test/java/org/apache/uima/jcas/
incubator/uima/uimaj/trunk/uimaj-document-annotation/src/test/java/org/apache/uima/jcas/tcas/
incubator/uima/uimaj/trunk/uimaj-document-annotation/src/test/java/org/apache/uima/jcas/tcas/DocumentAnnotationTest.java
Added: incubator/uima/uimaj/trunk/uimaj-document-annotation/pom.xml
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-document-annotation/pom.xml?view=auto&rev=494626
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-document-annotation/pom.xml (added)
+++ incubator/uima/uimaj/trunk/uimaj-document-annotation/pom.xml Tue Jan 9 14:27:06 2007
@@ -0,0 +1,49 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+<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/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.uima</groupId>
+ <artifactId>uimaj-document-annotation</artifactId>
+ <packaging>jar</packaging>
+ <version>2.1.0-incubating-SNAPSHOT</version>
+ <name>Apache UIMA Java Framework - Document Annotation</name>
+ <url>http://incubator.apache.org/uima</url>
+ <parent>
+ <groupId>org.apache.uima</groupId>
+ <artifactId>uimaj</artifactId>
+ <version>2.1.0-incubating-SNAPSHOT</version>
+ </parent>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.uima</groupId>
+ <artifactId>uimaj-core</artifactId>
+ <version>2.1.0-incubating-SNAPSHOT</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.uima</groupId>
+ <artifactId>uimaj-test-util</artifactId>
+ <version>2.1.0-incubating-SNAPSHOT</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Added: incubator/uima/uimaj/trunk/uimaj-document-annotation/src/test/java/org/apache/uima/jcas/tcas/DocumentAnnotationTest.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-document-annotation/src/test/java/org/apache/uima/jcas/tcas/DocumentAnnotationTest.java?view=auto&rev=494626
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-document-annotation/src/test/java/org/apache/uima/jcas/tcas/DocumentAnnotationTest.java (added)
+++ incubator/uima/uimaj/trunk/uimaj-document-annotation/src/test/java/org/apache/uima/jcas/tcas/DocumentAnnotationTest.java Tue Jan 9 14:27:06 2007
@@ -0,0 +1,61 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.uima.jcas.tcas;
+
+import junit.framework.TestCase;
+
+import org.apache.uima.cas.CAS;
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.resource.metadata.impl.TypeSystemDescription_impl;
+import org.apache.uima.test.junit_extension.JUnitExtension;
+import org.apache.uima.util.CasCreationUtils;
+
+/**
+ *
+ */
+public class DocumentAnnotationTest extends TestCase {
+ JCas jcas;
+
+ public void setUp() throws Exception {
+ try {
+ CAS cas = CasCreationUtils.createCas(new TypeSystemDescription_impl(), null, null);
+ this.jcas = cas.getJCas();
+ } catch (Exception e) {
+ JUnitExtension.handleException(e);
+ }
+ }
+
+ public void testGetDocumentAnnotation() throws Exception {
+ try {
+ assertTrue(jcas.getDocumentAnnotationFs() instanceof DocumentAnnotation);
+ } catch (Exception e) {
+ JUnitExtension.handleException(e);
+ }
+ }
+
+ public void testCreateDocumentAnnot() throws Exception {
+ try {
+ DocumentAnnotation b = (DocumentAnnotation) jcas.getDocumentAnnotationFs();
+ jcas.reset();
+ DocumentAnnotation a = (DocumentAnnotation) jcas.getDocumentAnnotationFs();
+ } catch (Exception e) {
+ JUnitExtension.handleException(e);
+ }
+ }
+}