March 2018
Intermediate to advanced
310 pages
7h 10m
English
As we have just hinted, Swarm can create the default test deployment.
We will modify the Test class so that the archive is created automatically:
package org.packt.swarm.petstore.catalog;import org.jboss.arquillian.junit.Arquillian;import org.junit.Assert;import org.junit.Test;import org.junit.runner.RunWith;import org.wildfly.swarm.arquillian.DefaultDeployment;import javax.inject.Inject;@RunWith(Arquillian.class)//1@DefaultDeploymentpublic class CatalogServiceTest { @Inject CatalogService catalogService; @Test public void testSearchById() { Assert.assertEquals(catalogService.searchById("turtle").getName(),"turtle"); }}
In order to tell Swarm to ...
Read now
Unlock full access