Skip to content

Commit

Permalink
Test catalog item tags serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
neykov committed Jan 14, 2016
1 parent f9591d9 commit 9c64872
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -39,12 +39,14 @@
import org.apache.brooklyn.core.catalog.internal.CatalogXmlSerializer;
import org.apache.brooklyn.core.catalog.internal.CatalogClasspathDo.CatalogScanningModes;
import org.apache.brooklyn.core.entity.Entities;
import org.apache.brooklyn.core.mgmt.BrooklynTags;
import org.apache.brooklyn.core.mgmt.internal.LocalManagementContext;
import org.apache.brooklyn.core.test.entity.LocalManagementContextForTests;
import org.apache.brooklyn.core.test.entity.TestApplication;
import org.apache.brooklyn.core.test.entity.TestEntity;
import org.apache.brooklyn.util.core.BrooklynMavenArtifacts;
import org.apache.brooklyn.util.maven.MavenRetriever;
import org.apache.commons.lang3.ClassUtils;

import com.google.common.collect.ImmutableList;

Expand Down Expand Up @@ -111,6 +113,9 @@ public CatalogDto buildExampleCatalog() {
testEntitiesJavaCatalog.addEntry(CatalogItemBuilder.newTemplate(TestApplication.class.getCanonicalName(), BasicBrooklynCatalog.NO_VERSION)
.displayName("Test App from JAR")
.javaType(TestApplication.class.getCanonicalName())
.tag(BrooklynTags.newNotesTag("Some notes for catalog testing"))
.tag(BrooklynTags.newYamlSpecTag("This is the spec for a test catalog item"))
.tag(BrooklynTags.newTraitsTag(ClassUtils.getAllInterfaces(TestApplication.class)))
.build());
testEntitiesJavaCatalog.addEntry(CatalogItemBuilder.newEntity(TestEntity.class.getCanonicalName(), BasicBrooklynCatalog.NO_VERSION)
.displayName("Test Entity from JAR")
Expand Down

0 comments on commit 9c64872

Please sign in to comment.