Skip to content

Commit

Permalink
Fix imports in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
atextor committed Oct 13, 2023
1 parent 3938fd1 commit 27fc2e8
Show file tree
Hide file tree
Showing 16 changed files with 14 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
import org.eclipse.esmf.aspectmodel.resolver.AspectModelResolver;
import org.eclipse.esmf.metamodel.Aspect;
import org.eclipse.esmf.metamodel.loader.AspectModelLoader;
// end::imports[]
import java.io.File;
import java.io.IOException;
import org.junit.jupiter.api.Test;
// end::imports[]

public class GenerateAas extends AbstractGenerator {
@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import java.util.Set;
import org.eclipse.esmf.aspectmodel.generator.diagram.AspectModelDiagramGenerator;
import org.eclipse.esmf.aspectmodel.generator.diagram.AspectModelDiagramGenerator.Format;
import org.eclipse.esmf.aspectmodel.resolver.AspectModelResolver;
import org.eclipse.esmf.metamodel.AspectContext;
import org.eclipse.esmf.metamodel.loader.AspectModelLoader;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
import org.eclipse.esmf.metamodel.Aspect;
import org.eclipse.esmf.metamodel.AspectContext;
import org.eclipse.esmf.metamodel.loader.AspectModelLoader;
// end::imports[]
import java.io.IOException;
import org.junit.jupiter.api.Test;
// end::imports[]

public class GenerateHtml extends AbstractGenerator {
@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
import org.eclipse.esmf.aspectmodel.resolver.AspectModelResolver;
import org.eclipse.esmf.metamodel.Aspect;
import org.eclipse.esmf.metamodel.loader.AspectModelLoader;
// end::imports[]
import java.io.File;
import org.apache.commons.io.output.NullOutputStream;
import org.junit.jupiter.api.Test;
// end::imports[]

public class GenerateJavaPojo {
@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
import org.eclipse.esmf.aspectmodel.resolver.AspectModelResolver;
import org.eclipse.esmf.metamodel.Aspect;
import org.eclipse.esmf.metamodel.loader.AspectModelLoader;
// end::imports[]
import java.io.File;
import org.apache.commons.io.output.NullOutputStream;
import org.junit.jupiter.api.Test;
// end::imports[]

public class GenerateJavaStaticClass {
@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
package examples;

// tag::imports[]

import java.io.File;
import java.io.IOException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
import org.eclipse.esmf.aspectmodel.resolver.AspectModelResolver;
import org.eclipse.esmf.metamodel.Aspect;
import org.eclipse.esmf.metamodel.loader.AspectModelLoader;
// end::imports[]
import java.io.File;
import java.io.IOException;
import org.junit.jupiter.api.Test;
// end::imports[]

public class GenerateJsonSchema {
@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
import org.eclipse.esmf.aspectmodel.resolver.AspectModelResolver;
import org.eclipse.esmf.metamodel.Aspect;
import org.eclipse.esmf.metamodel.loader.AspectModelLoader;
// end::imports[]
import java.io.File;
import java.io.IOException;
import org.junit.jupiter.api.Test;
// end::imports[]

public class GenerateOpenApi {
@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@
// tag::imports[]
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;

import io.vavr.collection.Stream;
import io.vavr.control.Try;
// end::imports[]
import org.junit.jupiter.api.Test;
// end::imports[]

public class HandlingTry {
private Try<List<String>> someMethodReturningTryOfListOfString() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import org.eclipse.esmf.metamodel.NamedElement;
import org.eclipse.esmf.metamodel.loader.AspectModelLoader;
import io.vavr.collection.Stream;
// end::imports[]
import org.junit.jupiter.api.Test;
// end::imports[]

public class LoadAspectModelObjects {
@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
import org.eclipse.esmf.aspectmodel.urn.AspectModelUrn;
import org.eclipse.esmf.aspectmodel.vocabulary.SAMM;
import io.vavr.control.Try;
// end::imports[]
import org.junit.jupiter.api.Test;
// end::imports[]

public class LoadAspectModelRdf {
@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
import org.eclipse.esmf.samm.KnownVersion;
import org.eclipse.esmf.aspectmodel.resolver.services.MetaModelUrls;
import org.eclipse.esmf.aspectmodel.vocabulary.SAMM;
// end::imports[]
import org.junit.jupiter.api.Test;
// end::imports[]

public class LoadMetaModelRdf {
@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
import org.eclipse.esmf.aspectmodel.urn.AspectModelUrn;
import org.eclipse.esmf.aspectmodel.versionupdate.MigratorService;
import io.vavr.control.Try;
// end::imports[]
import java.nio.file.Paths;
import org.junit.jupiter.api.Test;
// end::imports[]

public class MigrateAspectModel {
@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

package examples;

// tag::imports[]
import org.junit.jupiter.api.Test;

// tag::imports[]
import org.eclipse.esmf.aspectmodel.urn.AspectModelUrn;
// end::imports[]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
import org.eclipse.esmf.aspectmodel.vocabulary.Namespace;
import org.eclipse.esmf.metamodel.Aspect;
import org.eclipse.esmf.metamodel.loader.AspectModelLoader;
// end::imports[]
import org.junit.jupiter.api.Test;
// end::imports[]

public class SerializeAspectModel {
@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
import org.eclipse.esmf.aspectmodel.validation.services.DetailedViolationFormatter;
import org.eclipse.esmf.aspectmodel.validation.services.ViolationFormatter;
import io.vavr.control.Try;
// end::imports[]
import java.io.File;
import org.junit.jupiter.api.Test;
// end::imports[]

public class ValidateAspectModel {
@Test
Expand Down

0 comments on commit 27fc2e8

Please sign in to comment.