Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'deprecated/library (emf 2.3)/Library.tests')
-rw-r--r--deprecated/library (emf 2.3)/Library.tests/.classpath7
-rw-r--r--deprecated/library (emf 2.3)/Library.tests/.project28
-rw-r--r--deprecated/library (emf 2.3)/Library.tests/META-INF/MANIFEST.MF14
-rw-r--r--deprecated/library (emf 2.3)/Library.tests/build.properties13
-rw-r--r--deprecated/library (emf 2.3)/Library.tests/plugin.properties20
-rw-r--r--deprecated/library (emf 2.3)/Library.tests/plugin.xml12
-rw-r--r--deprecated/library (emf 2.3)/Library.tests/src/org/eclipse/example/library/tests/BookTest.java91
-rw-r--r--deprecated/library (emf 2.3)/Library.tests/src/org/eclipse/example/library/tests/LibraryAllTests.java50
-rw-r--r--deprecated/library (emf 2.3)/Library.tests/src/org/eclipse/example/library/tests/LibraryExample.java128
-rw-r--r--deprecated/library (emf 2.3)/Library.tests/src/org/eclipse/example/library/tests/LibraryTest.java91
-rw-r--r--deprecated/library (emf 2.3)/Library.tests/src/org/eclipse/example/library/tests/LibraryTests.java50
-rw-r--r--deprecated/library (emf 2.3)/Library.tests/src/org/eclipse/example/library/tests/WriterTest.java91
12 files changed, 0 insertions, 595 deletions
diff --git a/deprecated/library (emf 2.3)/Library.tests/.classpath b/deprecated/library (emf 2.3)/Library.tests/.classpath
deleted file mode 100644
index 304e86186..000000000
--- a/deprecated/library (emf 2.3)/Library.tests/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/deprecated/library (emf 2.3)/Library.tests/.project b/deprecated/library (emf 2.3)/Library.tests/.project
deleted file mode 100644
index 20239f61c..000000000
--- a/deprecated/library (emf 2.3)/Library.tests/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>Library.tests</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.pde.PluginNature</nature>
- </natures>
-</projectDescription>
diff --git a/deprecated/library (emf 2.3)/Library.tests/META-INF/MANIFEST.MF b/deprecated/library (emf 2.3)/Library.tests/META-INF/MANIFEST.MF
deleted file mode 100644
index d690f8eb2..000000000
--- a/deprecated/library (emf 2.3)/Library.tests/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,14 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %pluginName
-Bundle-SymbolicName: Library.tests; singleton:=true
-Bundle-Version: 1.0.0
-Bundle-ClassPath: .
-Bundle-Vendor: %providerName
-Bundle-Localization: plugin
-Export-Package: org.eclipse.example.library.tests
-Require-Bundle: org.eclipse.core.runtime,
- Library;visibility:=reexport,
- org.eclipse.emf.ecore.xmi;visibility:=reexport,
- org.junit;visibility:=reexport
-Eclipse-LazyStart: true
diff --git a/deprecated/library (emf 2.3)/Library.tests/build.properties b/deprecated/library (emf 2.3)/Library.tests/build.properties
deleted file mode 100644
index e8f7a0db4..000000000
--- a/deprecated/library (emf 2.3)/Library.tests/build.properties
+++ /dev/null
@@ -1,13 +0,0 @@
-
-# <copyright>
-# </copyright>
-#
-# $Id: build.properties,v 1.1 2008/04/01 07:32:44 mtaal Exp $
-
-bin.includes = .,\
- META-INF/,\
- plugin.xml,\
- plugin.properties
-jars.compile.order = .
-source.. = src/
-output.. = bin/
diff --git a/deprecated/library (emf 2.3)/Library.tests/plugin.properties b/deprecated/library (emf 2.3)/Library.tests/plugin.properties
deleted file mode 100644
index b984a7b51..000000000
--- a/deprecated/library (emf 2.3)/Library.tests/plugin.properties
+++ /dev/null
@@ -1,20 +0,0 @@
-
-# <copyright>
-# </copyright>
-#
-# $Id: plugin.properties,v 1.1 2008/04/01 07:32:44 mtaal Exp $
-
-# ====================================================================
-# To code developer:
-# Do NOT change the properties between this line and the
-# "%%% END OF TRANSLATED PROPERTIES %%%" line.
-# Make a new property name, append to the end of the file and change
-# the code to use the new property.
-# ====================================================================
-
-# ====================================================================
-# %%% END OF TRANSLATED PROPERTIES %%%
-# ====================================================================
-
-pluginName = Library Tests
-providerName = www.example.org
diff --git a/deprecated/library (emf 2.3)/Library.tests/plugin.xml b/deprecated/library (emf 2.3)/Library.tests/plugin.xml
deleted file mode 100644
index efc8a8594..000000000
--- a/deprecated/library (emf 2.3)/Library.tests/plugin.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.0"?>
-
-<!--
- <copyright>
- </copyright>
-
- $Id: plugin.xml,v 1.1 2008/04/01 07:32:44 mtaal Exp $
--->
-
-<plugin>
-</plugin>
diff --git a/deprecated/library (emf 2.3)/Library.tests/src/org/eclipse/example/library/tests/BookTest.java b/deprecated/library (emf 2.3)/Library.tests/src/org/eclipse/example/library/tests/BookTest.java
deleted file mode 100644
index 6fcff09c2..000000000
--- a/deprecated/library (emf 2.3)/Library.tests/src/org/eclipse/example/library/tests/BookTest.java
+++ /dev/null
@@ -1,91 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: BookTest.java,v 1.1 2008/04/01 07:32:44 mtaal Exp $
- */
-package org.eclipse.example.library.tests;
-
-import junit.framework.TestCase;
-
-import junit.textui.TestRunner;
-
-import org.eclipse.example.library.Book;
-import org.eclipse.example.library.LibraryFactory;
-
-/**
- * <!-- begin-user-doc -->
- * A test case for the model object '<em><b>Book</b></em>'.
- * <!-- end-user-doc -->
- * @generated
- */
-public class BookTest extends TestCase {
-
- /**
- * The fixture for this Book test case.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected Book fixture = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static void main(String[] args) {
- TestRunner.run(BookTest.class);
- }
-
- /**
- * Constructs a new Book test case with the given name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public BookTest(String name) {
- super(name);
- }
-
- /**
- * Sets the fixture for this Book test case.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void setFixture(Book fixture) {
- this.fixture = fixture;
- }
-
- /**
- * Returns the fixture for this Book test case.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private Book getFixture() {
- return fixture;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see junit.framework.TestCase#setUp()
- * @generated
- */
- protected void setUp() throws Exception {
- setFixture(LibraryFactory.eINSTANCE.createBook());
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see junit.framework.TestCase#tearDown()
- * @generated
- */
- protected void tearDown() throws Exception {
- setFixture(null);
- }
-
-} //BookTest
diff --git a/deprecated/library (emf 2.3)/Library.tests/src/org/eclipse/example/library/tests/LibraryAllTests.java b/deprecated/library (emf 2.3)/Library.tests/src/org/eclipse/example/library/tests/LibraryAllTests.java
deleted file mode 100644
index 5d3407872..000000000
--- a/deprecated/library (emf 2.3)/Library.tests/src/org/eclipse/example/library/tests/LibraryAllTests.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: LibraryAllTests.java,v 1.1 2008/04/01 07:32:44 mtaal Exp $
- */
-package org.eclipse.example.library.tests;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import junit.textui.TestRunner;
-
-/**
- * <!-- begin-user-doc -->
- * A test suite for the '<em><b>Library</b></em>' model.
- * <!-- end-user-doc -->
- * @generated
- */
-public class LibraryAllTests extends TestSuite {
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static void main(String[] args) {
- TestRunner.run(suite());
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static Test suite() {
- TestSuite suite = new LibraryAllTests("Library Tests");
- return suite;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public LibraryAllTests(String name) {
- super(name);
- }
-
-} //LibraryAllTests
diff --git a/deprecated/library (emf 2.3)/Library.tests/src/org/eclipse/example/library/tests/LibraryExample.java b/deprecated/library (emf 2.3)/Library.tests/src/org/eclipse/example/library/tests/LibraryExample.java
deleted file mode 100644
index dd5018947..000000000
--- a/deprecated/library (emf 2.3)/Library.tests/src/org/eclipse/example/library/tests/LibraryExample.java
+++ /dev/null
@@ -1,128 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: LibraryExample.java,v 1.1 2008/04/01 07:32:44 mtaal Exp $
- */
-package org.eclipse.example.library.tests;
-
-import java.io.File;
-import java.io.IOException;
-
-import java.util.Iterator;
-
-import org.eclipse.emf.common.util.Diagnostic;
-import org.eclipse.emf.common.util.URI;
-
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-
-import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
-
-import org.eclipse.emf.ecore.util.Diagnostician;
-
-import org.eclipse.example.library.Book;
-import org.eclipse.example.library.LibraryFactory;
-import org.eclipse.example.library.LibraryPackage;
-
-import org.eclipse.example.library.util.LibraryResourceFactoryImpl;
-
-/**
- * <!-- begin-user-doc -->
- * A sample utility for the '<em><b>library</b></em>' package.
- * <!-- end-user-doc -->
- * @generated
- */
-public class LibraryExample {
- /**
- * <!-- begin-user-doc -->
- * Load all the argument file paths or URIs as instances of the model.
- * <!-- end-user-doc -->
- * @param args the file paths or URIs.
- * @generated
- */
- public static void main(String[] args) {
- // Create a resource set to hold the resources.
- //
- ResourceSet resourceSet = new ResourceSetImpl();
-
- // Register the appropriate resource factory to handle all file extensions.
- //
- resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put
- (Resource.Factory.Registry.DEFAULT_EXTENSION,
- new LibraryResourceFactoryImpl());
-
- // Register the package to ensure it is available during loading.
- //
- resourceSet.getPackageRegistry().put
- (LibraryPackage.eNS_URI,
- LibraryPackage.eINSTANCE);
-
- // If there are no arguments, emit an appropriate usage message.
- //
- if (args.length == 0) {
- System.out.println("Enter a list of file paths or URIs that have content like this:");
- try {
- Resource resource = resourceSet.createResource(URI.createURI("http:///My.library"));
- Book root = LibraryFactory.eINSTANCE.createBook();
- resource.getContents().add(root);
- resource.save(System.out, null);
- }
- catch (IOException exception) {
- exception.printStackTrace();
- }
- }
- else {
- // Iterate over all the arguments.
- //
- for (int i = 0; i < args.length; ++i) {
- // Construct the URI for the instance file.
- // The argument is treated as a file path only if it denotes an existing file.
- // Otherwise, it's directly treated as a URL.
- //
- File file = new File(args[i]);
- URI uri = file.isFile() ? URI.createFileURI(file.getAbsolutePath()): URI.createURI(args[0]);
-
- try {
- // Demand load resource for this file.
- //
- Resource resource = resourceSet.getResource(uri, true);
- System.out.println("Loaded " + uri);
-
- // Validate the contents of the loaded resource.
- //
- for (Iterator j = resource.getContents().iterator(); j.hasNext(); ) {
- EObject eObject = (EObject)j.next();
- Diagnostic diagnostic = Diagnostician.INSTANCE.validate(eObject);
- if (diagnostic.getSeverity() != Diagnostic.OK) {
- printDiagnostic(diagnostic, "");
- }
- }
- }
- catch (RuntimeException exception) {
- System.out.println("Problem loading " + uri);
- exception.printStackTrace();
- }
- }
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * Prints diagnostics with indentation.
- * <!-- end-user-doc -->
- * @param diagnostic the diagnostic to print.
- * @param indent the indentation for printing.
- * @generated
- */
- protected static void printDiagnostic(Diagnostic diagnostic, String indent) {
- System.out.print(indent);
- System.out.println(diagnostic.getMessage());
- for (Iterator i = diagnostic.getChildren().iterator(); i.hasNext(); ) {
- printDiagnostic((Diagnostic)i.next(), indent + " ");
- }
- }
-
-} //LibraryExample
diff --git a/deprecated/library (emf 2.3)/Library.tests/src/org/eclipse/example/library/tests/LibraryTest.java b/deprecated/library (emf 2.3)/Library.tests/src/org/eclipse/example/library/tests/LibraryTest.java
deleted file mode 100644
index 252f58c5a..000000000
--- a/deprecated/library (emf 2.3)/Library.tests/src/org/eclipse/example/library/tests/LibraryTest.java
+++ /dev/null
@@ -1,91 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: LibraryTest.java,v 1.1 2008/04/01 07:32:44 mtaal Exp $
- */
-package org.eclipse.example.library.tests;
-
-import junit.framework.TestCase;
-
-import junit.textui.TestRunner;
-
-import org.eclipse.example.library.Library;
-import org.eclipse.example.library.LibraryFactory;
-
-/**
- * <!-- begin-user-doc -->
- * A test case for the model object '<em><b>Library</b></em>'.
- * <!-- end-user-doc -->
- * @generated
- */
-public class LibraryTest extends TestCase {
-
- /**
- * The fixture for this Library test case.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected Library fixture = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static void main(String[] args) {
- TestRunner.run(LibraryTest.class);
- }
-
- /**
- * Constructs a new Library test case with the given name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public LibraryTest(String name) {
- super(name);
- }
-
- /**
- * Sets the fixture for this Library test case.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void setFixture(Library fixture) {
- this.fixture = fixture;
- }
-
- /**
- * Returns the fixture for this Library test case.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private Library getFixture() {
- return fixture;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see junit.framework.TestCase#setUp()
- * @generated
- */
- protected void setUp() throws Exception {
- setFixture(LibraryFactory.eINSTANCE.createLibrary());
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see junit.framework.TestCase#tearDown()
- * @generated
- */
- protected void tearDown() throws Exception {
- setFixture(null);
- }
-
-} //LibraryTest
diff --git a/deprecated/library (emf 2.3)/Library.tests/src/org/eclipse/example/library/tests/LibraryTests.java b/deprecated/library (emf 2.3)/Library.tests/src/org/eclipse/example/library/tests/LibraryTests.java
deleted file mode 100644
index 713c835e5..000000000
--- a/deprecated/library (emf 2.3)/Library.tests/src/org/eclipse/example/library/tests/LibraryTests.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: LibraryTests.java,v 1.1 2008/04/01 07:32:44 mtaal Exp $
- */
-package org.eclipse.example.library.tests;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import junit.textui.TestRunner;
-
-/**
- * <!-- begin-user-doc -->
- * A test suite for the '<em><b>library</b></em>' package.
- * <!-- end-user-doc -->
- * @generated
- */
-public class LibraryTests extends TestSuite {
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static void main(String[] args) {
- TestRunner.run(suite());
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static Test suite() {
- TestSuite suite = new LibraryTests("library Tests");
- return suite;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public LibraryTests(String name) {
- super(name);
- }
-
-} //LibraryTests
diff --git a/deprecated/library (emf 2.3)/Library.tests/src/org/eclipse/example/library/tests/WriterTest.java b/deprecated/library (emf 2.3)/Library.tests/src/org/eclipse/example/library/tests/WriterTest.java
deleted file mode 100644
index 3c7186bd6..000000000
--- a/deprecated/library (emf 2.3)/Library.tests/src/org/eclipse/example/library/tests/WriterTest.java
+++ /dev/null
@@ -1,91 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: WriterTest.java,v 1.1 2008/04/01 07:32:44 mtaal Exp $
- */
-package org.eclipse.example.library.tests;
-
-import junit.framework.TestCase;
-
-import junit.textui.TestRunner;
-
-import org.eclipse.example.library.LibraryFactory;
-import org.eclipse.example.library.Writer;
-
-/**
- * <!-- begin-user-doc -->
- * A test case for the model object '<em><b>Writer</b></em>'.
- * <!-- end-user-doc -->
- * @generated
- */
-public class WriterTest extends TestCase {
-
- /**
- * The fixture for this Writer test case.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected Writer fixture = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static void main(String[] args) {
- TestRunner.run(WriterTest.class);
- }
-
- /**
- * Constructs a new Writer test case with the given name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public WriterTest(String name) {
- super(name);
- }
-
- /**
- * Sets the fixture for this Writer test case.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void setFixture(Writer fixture) {
- this.fixture = fixture;
- }
-
- /**
- * Returns the fixture for this Writer test case.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private Writer getFixture() {
- return fixture;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see junit.framework.TestCase#setUp()
- * @generated
- */
- protected void setUp() throws Exception {
- setFixture(LibraryFactory.eINSTANCE.createWriter());
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see junit.framework.TestCase#tearDown()
- * @generated
- */
- protected void tearDown() throws Exception {
- setFixture(null);
- }
-
-} //WriterTest

Back to the top