Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update showcase to Spring Extension Beta 1.

  • Loading branch information...
commit f8b0e75cd266b4b029e47aac781189c8ec93d64a 1 parent feaef61
Jakub Narloch authored aslakknutsen committed
View
21 spring/pom.xml
@@ -36,8 +36,9 @@
<properties>
<!-- Arquillian version -->
- <version.arquillian>1.0.1.Final</version.arquillian>
- <version.arquillian.spring>1.0.0.Alpha2</version.arquillian.spring>
+ <version.arquillian>1.0.2.Final</version.arquillian>
+ <version.arquillian.spring>1.0.0.Beta1</version.arquillian.spring>
+ <version.arquillian.transaction>1.0.0.Alpha1</version.arquillian.transaction>
<!-- Test related -->
<version.junit_junit>4.8.1</version.junit_junit>
@@ -74,6 +75,13 @@
</dependency>
<dependency>
+ <groupId>org.jboss.arquillian.extension</groupId>
+ <artifactId>arquillian-transaction-spring</artifactId>
+ <version>${version.arquillian.spring}</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${version.spring_framework}</version>
@@ -109,6 +117,15 @@
<version>${version.spring_framework}</version>
</dependency>
+ <!-- Arquillian Transaction -->
+ <dependency>
+ <groupId>org.jboss.arquillian.extension</groupId>
+ <artifactId>arquillian-transaction-bom</artifactId>
+ <version>${version.arquillian.transaction}</version>
+ <scope>import</scope>
+ <type>pom</type>
+ </dependency>
+
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
View
12 spring/spring-hibernate/pom.xml
@@ -77,6 +77,18 @@
</dependency>
<dependency>
+ <groupId>org.jboss.arquillian.extension</groupId>
+ <artifactId>arquillian-transaction-spring</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.arquillian.extension</groupId>
+ <artifactId>arquillian-transaction-api</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
View
24 ...test/java/com/acme/spring/hibernate/repository/impl/HibernateStockRepositoryTestCase.java
@@ -24,6 +24,7 @@
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.arquillian.spring.integration.test.annotation.SpringConfiguration;
+import org.jboss.arquillian.transaction.api.annotation.Transactional;
import org.jboss.shrinkwrap.api.Archive;
import org.junit.After;
import org.junit.Test;
@@ -46,6 +47,7 @@
* @author <a href="mailto:jmnarloch@gmail.com">Jakub Narloch</a>
*/
@RunWith(Arquillian.class)
+@Transactional(manager = "txManager")
@SpringConfiguration("applicationContext.xml")
public class HibernateStockRepositoryTestCase {
@@ -67,7 +69,7 @@ public static Archive createTestArchive() {
private StockRepository stockRepository;
/**
- * <p>{@link org.hibernate.SessionFactory} instance used by tests.</p>
+ * <p>{@link SessionFactory} instance used by tests.</p>
*/
@Autowired
private SessionFactory sessionFactory;
@@ -91,9 +93,7 @@ public Session getSession() {
public void tearDown() throws Exception {
// deletes all records from database
- getSession().getTransaction().begin();
getSession().createQuery("delete from Stock").executeUpdate();
- getSession().getTransaction().commit();
}
/**
@@ -105,8 +105,6 @@ public void testSave() {
Stock acme = createStock("Acme", "ACM", 123.21D, new Date());
Stock redhat = createStock("Red Hat", "RHC", 59.61D, new Date());
- getSession().getTransaction().begin();
-
stockRepository.save(acme);
stockRepository.save(redhat);
@@ -114,7 +112,6 @@ public void testSave() {
assertTrue("The stock id hasn't been assigned.", redhat.getId() > 0);
List<Stock> stocks = retrieveAllStocks(getSession());
- getSession().getTransaction().commit();
assertEquals("Incorrect number of created stocks, 2 were expected.", 2, stocks.size());
@@ -128,8 +125,6 @@ public void testSave() {
@Test
public void testUpdate() throws Exception {
- getSession().getTransaction().begin();
-
runScript(getSession(), "insert.sql");
List<Stock> stocks = retrieveAllStocks(getSession());
@@ -141,8 +136,6 @@ public void testUpdate() throws Exception {
stocks = retrieveAllStocks(getSession());
- getSession().getTransaction().commit();
-
assertEquals("The stock symbol hasn't been updated.", acme.getSymbol(), stocks.get(0).getSymbol());
}
@@ -152,15 +145,11 @@ public void testUpdate() throws Exception {
@Test
public void testGet() throws Exception {
- getSession().getTransaction().begin();
-
runScript(getSession(), "insert.sql");
Stock acme = createStock("Acme", "ACM", 123.21D, new Date());
Stock result = stockRepository.get(1L);
- getSession().getTransaction().commit();
-
assertNotNull("Method returned null result.", result);
assertStock(acme, result);
}
@@ -171,16 +160,12 @@ public void testGet() throws Exception {
@Test
public void testGetBySymbol() throws Exception {
- getSession().getTransaction().begin();
-
runScript(getSession(), "insert.sql");
Stock acme = createStock("Acme", "ACM", 123.21D, new Date());
Stock result = stockRepository.getBySymbol(acme.getSymbol());
- getSession().getTransaction().commit();
-
assertNotNull("Method returned null result.", result);
assertStock(acme, result);
}
@@ -190,14 +175,11 @@ public void testGetBySymbol() throws Exception {
*/
@Test
public void testGetAll() throws Exception {
- getSession().getTransaction().begin();
runScript(getSession(), "insert.sql");
List<Stock> result = stockRepository.getAll();
- getSession().getTransaction().commit();
-
assertNotNull("Method returned null result.", result);
assertEquals("Incorrect number of elements.", 2, result.size());
}
View
23 ...ate/src/test/java/com/acme/spring/hibernate/service/impl/DefaultStockServiceTestCase.java
@@ -24,6 +24,7 @@
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.arquillian.spring.integration.test.annotation.SpringConfiguration;
+import org.jboss.arquillian.transaction.api.annotation.Transactional;
import org.jboss.shrinkwrap.api.Archive;
import org.junit.After;
import org.junit.Test;
@@ -46,6 +47,7 @@
* @author <a href="mailto:jmnarloch@gmail.com">Jakub Narloch</a>
*/
@RunWith(Arquillian.class)
+@Transactional(manager = "txManager")
@SpringConfiguration("applicationContext.xml")
public class DefaultStockServiceTestCase {
@@ -67,7 +69,7 @@ public static Archive createTestArchive() {
private StockService stockService;
/**
- * <p>{@link org.hibernate.SessionFactory} instance used by tests.</p>
+ * <p>{@link SessionFactory} instance used by tests.</p>
*/
@Autowired
private SessionFactory sessionFactory;
@@ -91,9 +93,7 @@ public Session getSession() {
public void tearDown() throws Exception {
// deletes all records from database
- getSession().getTransaction().begin();
getSession().createQuery("delete from Stock").executeUpdate();
- getSession().getTransaction().commit();
}
/**
@@ -105,8 +105,6 @@ public void testSave() {
Stock acme = createStock("Acme", "ACM", 123.21D, new Date());
Stock redhat = createStock("Red Hat", "RHC", 59.61D, new Date());
- getSession().getTransaction().begin();
-
stockService.save(acme);
stockService.save(redhat);
@@ -115,8 +113,6 @@ public void testSave() {
List<Stock> stocks = retrieveAllStocks(getSession());
- getSession().getTransaction().commit();
-
assertEquals("Incorrect number of created stocks, 2 were expected.", 2, stocks.size());
assertStock(acme, stocks.get(0));
@@ -129,8 +125,6 @@ public void testSave() {
@Test
public void testUpdate() throws Exception {
- getSession().getTransaction().begin();
-
runScript(getSession(), "insert.sql");
List<Stock> stocks = retrieveAllStocks(getSession());
@@ -142,8 +136,6 @@ public void testUpdate() throws Exception {
stocks = retrieveAllStocks(getSession());
- getSession().getTransaction().commit();
-
assertEquals("The stock symbol hasn't been updated.", acme.getSymbol(), stocks.get(0).getSymbol());
}
@@ -153,15 +145,12 @@ public void testUpdate() throws Exception {
@Test
public void testGet() throws Exception {
- getSession().getTransaction().begin();
runScript(getSession(), "insert.sql");
Stock acme = createStock("Acme", "ACM", 123.21D, new Date());
Stock result = stockService.get(1L);
- getSession().getTransaction().commit();
-
assertNotNull("Method returned null result.", result);
assertStock(acme, result);
}
@@ -172,15 +161,12 @@ public void testGet() throws Exception {
@Test
public void testGetBySymbol() throws Exception {
- getSession().getTransaction().begin();
runScript(getSession(), "insert.sql");
Stock acme = createStock("Acme", "ACM", 123.21D, new Date());
Stock result = stockService.getBySymbol(acme.getSymbol());
- getSession().getTransaction().commit();
-
assertNotNull("Method returned null result.", result);
assertStock(acme, result);
}
@@ -191,13 +177,10 @@ public void testGetBySymbol() throws Exception {
@Test
public void testGetAll() throws Exception {
- getSession().getTransaction().begin();
runScript(getSession(), "insert.sql");
List<Stock> result = stockService.getAll();
- getSession().getTransaction().commit();
-
assertNotNull("Method returned null result.", result);
assertEquals("Incorrect number of elements.", 2, result.size());
}
View
1  spring/spring-hibernate/src/test/resources/applicationContext-repository.xml
@@ -31,7 +31,6 @@
</property>
<property name="hibernateProperties">
<value>
- hibernate.current_session_context_class=thread
hibernate.dialect=org.hibernate.dialect.H2Dialect
hibernate.hbm2ddl.auto=create-drop
</value>
View
12 spring/spring-jdbc/pom.xml
@@ -62,6 +62,18 @@
</dependency>
<dependency>
+ <groupId>org.jboss.arquillian.extension</groupId>
+ <artifactId>arquillian-transaction-spring</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.arquillian.extension</groupId>
+ <artifactId>arquillian-transaction-api</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
View
2  ...-jdbc/src/test/java/com/acme/spring/jdbc/repository/impl/JdbcStockRepositoryTestCase.java
@@ -22,6 +22,7 @@
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.arquillian.spring.integration.test.annotation.SpringConfiguration;
+import org.jboss.arquillian.transaction.api.annotation.Transactional;
import org.jboss.shrinkwrap.api.Archive;
import org.junit.After;
import org.junit.Test;
@@ -46,6 +47,7 @@
* @author <a href="mailto:jmnarloch@gmail.com">Jakub Narloch</a>
*/
@RunWith(Arquillian.class)
+@Transactional(manager = "txManager")
@SpringConfiguration("applicationContext.xml")
public class JdbcStockRepositoryTestCase {
View
2  ...ing-jdbc/src/test/java/com/acme/spring/jdbc/service/impl/DefaultStockServiceTestCase.java
@@ -22,6 +22,7 @@
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.arquillian.spring.integration.test.annotation.SpringConfiguration;
+import org.jboss.arquillian.transaction.api.annotation.Transactional;
import org.jboss.shrinkwrap.api.Archive;
import org.junit.After;
import org.junit.Test;
@@ -46,6 +47,7 @@
* @author <a href="mailto:jmnarloch@gmail.com">Jakub Narloch</a>
*/
@RunWith(Arquillian.class)
+@Transactional(manager = "txManager")
@SpringConfiguration("applicationContext.xml")
public class DefaultStockServiceTestCase {
View
12 spring/spring-jpa/pom.xml
@@ -82,6 +82,18 @@
</dependency>
<dependency>
+ <groupId>org.jboss.arquillian.extension</groupId>
+ <artifactId>arquillian-transaction-spring</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.arquillian.extension</groupId>
+ <artifactId>arquillian-transaction-api</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
View
61 spring/spring-jpa/src/main/java/com/acme/spring/jpa/repository/impl/JpaStockRepository.java
@@ -21,9 +21,7 @@
import org.springframework.stereotype.Repository;
import javax.persistence.EntityManager;
-import javax.persistence.EntityManagerFactory;
-import javax.persistence.PersistenceException;
-import javax.persistence.PersistenceUnit;
+import javax.persistence.PersistenceContext;
import java.text.MessageFormat;
import java.util.List;
@@ -36,20 +34,10 @@
public class JpaStockRepository implements StockRepository {
/**
- * <p>Represents the instance of {@link EntityManagerFactory} used for persistence operation.</p>
+ * <p>Represents the instance of {@link EntityManager} used for persistence operation.</p>
*/
- @PersistenceUnit
- private EntityManagerFactory entityManagerFactory;
-
- /**
- * <p>Retrieves the entity manger.</p>
- *
- * @return the entity manager
- */
- protected EntityManager getEntityManager() {
-
- return entityManagerFactory.createEntityManager();
- }
+ @PersistenceContext
+ private EntityManager entityManager;
/**
* <p>Creates new instance of {@link JpaStockRepository}</p>
@@ -68,23 +56,11 @@ public long save(Stock stock) {
validateNoNull(stock, "stock");
validateNotEmpty(stock.getSymbol(), "symbol");
- EntityManager entityManager = getEntityManager();
-
- try {
- entityManager.getTransaction().begin();
-
- // persists the entity
- entityManager.persist(stock);
-
- entityManager.getTransaction().commit();
+ // persists the entity
+ entityManager.persist(stock);
- // return the newly created id for the entity
- return stock.getId();
- } catch (PersistenceException exc) {
- entityManager.getTransaction().rollback();
-
- throw exc;
- }
+ // return the newly created id for the entity
+ return stock.getId();
}
/**
@@ -97,20 +73,7 @@ public void update(Stock stock) {
validateNoNull(stock, "stock");
validateNotEmpty(stock.getSymbol(), "symbol");
- EntityManager entityManager = getEntityManager();
-
- try {
- entityManager.getTransaction().begin();
-
- entityManager.merge(stock);
-
- entityManager.getTransaction().commit();
- } catch (PersistenceException exc) {
-
- entityManager.getTransaction().rollback();
-
- throw exc;
- }
+ entityManager.merge(stock);
}
/**
@@ -120,7 +83,7 @@ public void update(Stock stock) {
public Stock get(long id) {
// retrieves the entity by it's id
- return getEntityManager().find(Stock.class, id);
+ return entityManager.find(Stock.class, id);
}
/**
@@ -132,7 +95,7 @@ public Stock getBySymbol(String symbol) {
validateNotEmpty(symbol, "symbol");
// retrieves the entity by it's symbol
- return (Stock) getEntityManager().createQuery("from Stock where symbol = :symbol")
+ return (Stock) entityManager.createQuery("from Stock where symbol = :symbol")
.setParameter("symbol", symbol)
.getSingleResult();
}
@@ -144,7 +107,7 @@ public Stock getBySymbol(String symbol) {
public List<Stock> getAll() {
// retrieves all stocks
- return getEntityManager().createQuery("from Stock").getResultList();
+ return entityManager.createQuery("from Stock").getResultList();
}
/**
View
6 spring/spring-jpa/src/test/java/com/acme/spring/jpa/JpaTestHelper.java
@@ -72,16 +72,10 @@ public static void runScript(EntityManager entityManager, String fileName) throw
// splits the commands by semicolon
String[] commands = stringBuilder.toString().split(";");
- // begins the transaction
- entityManager.getTransaction().begin();
-
for (final String command : commands) {
entityManager.createNativeQuery(command).executeUpdate();
}
-
- // commits the transaction
- entityManager.getTransaction().commit();
}
/**
View
39 ...ing-jpa/src/test/java/com/acme/spring/jpa/repository/impl/JpaStockRepositoryTestCase.java
@@ -22,6 +22,7 @@
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.arquillian.spring.integration.test.annotation.SpringConfiguration;
+import org.jboss.arquillian.transaction.api.annotation.Transactional;
import org.jboss.shrinkwrap.api.Archive;
import org.junit.After;
import org.junit.Test;
@@ -29,8 +30,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import javax.persistence.EntityManager;
-import javax.persistence.EntityManagerFactory;
-import javax.persistence.PersistenceUnit;
+import javax.persistence.PersistenceContext;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
@@ -47,6 +47,7 @@
* @author <a href="mailto:jmnarloch@gmail.com">Jakub Narloch</a>
*/
@RunWith(Arquillian.class)
+@Transactional(manager = "txManager")
@SpringConfiguration("applicationContext.xml")
public class JpaStockRepositoryTestCase {
@@ -68,20 +69,10 @@ public static Archive createTestArchive() {
private StockRepository stockRepository;
/**
- * <p>{@link EntityManagerFactory} instance used by tests.</p>
+ * <p>{@link EntityManager} instance used by tests.</p>
*/
- @PersistenceUnit
- private EntityManagerFactory entityManager;
-
- /**
- * <p>Retrieves an entity manager.</p>
- *
- * @return the entity manager
- */
- public EntityManager getEntityManager() {
-
- return entityManager.createEntityManager();
- }
+ @PersistenceContext
+ private EntityManager entityManager;
/**
* <p>Tears down the test environment.</p>
@@ -91,12 +82,8 @@ public EntityManager getEntityManager() {
@After
public void tearDown() throws Exception {
- EntityManager entityManager = getEntityManager();
-
// deletes all records from database
- entityManager.getTransaction().begin();
entityManager.createQuery("delete from Stock").executeUpdate();
- entityManager.getTransaction().commit();
}
/**
@@ -114,8 +101,6 @@ public void testSave() {
assertTrue("The stock id hasn't been assigned.", acme.getId() > 0);
assertTrue("The stock id hasn't been assigned.", redhat.getId() > 0);
- EntityManager entityManager = getEntityManager();
-
List<Stock> stocks = retrieveAllStocks(entityManager);
assertEquals("Incorrect number of created stocks, 2 were expected.", 2, stocks.size());
@@ -130,8 +115,6 @@ public void testSave() {
@Test
public void testUpdate() throws Exception {
- EntityManager entityManager = getEntityManager();
-
runScript(entityManager, "insert.sql");
List<Stock> stocks = retrieveAllStocks(entityManager);
@@ -152,8 +135,6 @@ public void testUpdate() throws Exception {
@Test
public void testGet() throws Exception {
- EntityManager entityManager = getEntityManager();
-
runScript(entityManager, "insert.sql");
Stock acme = createStock("Acme", "ACM", 123.21D, new Date());
@@ -170,8 +151,6 @@ public void testGet() throws Exception {
@Test
public void testGetBySymbol() throws Exception {
- EntityManager entityManager = getEntityManager();
-
runScript(entityManager, "insert.sql");
Stock acme = createStock("Acme", "ACM", 123.21D, new Date());
@@ -188,8 +167,6 @@ public void testGetBySymbol() throws Exception {
@Test
public void testGetAll() throws Exception {
- EntityManager entityManager = getEntityManager();
-
runScript(entityManager, "insert.sql");
List<Stock> result = stockRepository.getAll();
@@ -221,8 +198,8 @@ private static Stock createStock(String name, String symbol, double value, Date
/**
* <p>Asserts that the actual stock's properties values are correct.</p>
*
- * @param expected the expected stock object
- * @param actual the tested stock object
+ * @param expected the expected stock object
+ * @param actual the tested stock object
*/
private static void assertStock(Stock expected, Stock actual) {
View
39 ...pring-jpa/src/test/java/com/acme/spring/jpa/service/impl/DefaultStockServiceTestCase.java
@@ -23,6 +23,7 @@
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.arquillian.spring.integration.test.annotation.SpringConfiguration;
+import org.jboss.arquillian.transaction.api.annotation.Transactional;
import org.jboss.shrinkwrap.api.Archive;
import org.junit.After;
import org.junit.Test;
@@ -30,8 +31,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import javax.persistence.EntityManager;
-import javax.persistence.EntityManagerFactory;
-import javax.persistence.PersistenceUnit;
+import javax.persistence.PersistenceContext;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
@@ -48,6 +48,7 @@
* @author <a href="mailto:jmnarloch@gmail.com">Jakub Narloch</a>
*/
@RunWith(Arquillian.class)
+@Transactional(manager = "txManager")
@SpringConfiguration("applicationContext.xml")
public class DefaultStockServiceTestCase {
@@ -69,20 +70,10 @@ public static Archive createTestArchive() {
private StockService stockService;
/**
- * <p>{@link javax.persistence.EntityManagerFactory} instance used by tests.</p>
+ * <p>{@link EntityManager} instance used by tests.</p>
*/
- @PersistenceUnit
- private EntityManagerFactory entityManager;
-
- /**
- * <p>Retrieves an entity manager.</p>
- *
- * @return the entity manager
- */
- public EntityManager getEntityManager() {
-
- return entityManager.createEntityManager();
- }
+ @PersistenceContext
+ private EntityManager entityManager;
/**
* <p>Tears down the test environment.</p>
@@ -92,12 +83,8 @@ public EntityManager getEntityManager() {
@After
public void tearDown() throws Exception {
- EntityManager entityManager = getEntityManager();
-
// deletes all records from database
- entityManager.getTransaction().begin();
entityManager.createQuery("delete from Stock").executeUpdate();
- entityManager.getTransaction().commit();
}
/**
@@ -115,8 +102,6 @@ public void testSave() {
assertTrue("The stock id hasn't been assigned.", acme.getId() > 0);
assertTrue("The stock id hasn't been assigned.", redhat.getId() > 0);
- EntityManager entityManager = getEntityManager();
-
List<Stock> stocks = retrieveAllStocks(entityManager);
assertEquals("Incorrect number of created stocks, 2 were expected.", 2, stocks.size());
@@ -131,8 +116,6 @@ public void testSave() {
@Test
public void testUpdate() throws Exception {
- EntityManager entityManager = getEntityManager();
-
runScript(entityManager, "insert.sql");
List<Stock> stocks = JpaTestHelper.retrieveAllStocks(entityManager);
@@ -153,8 +136,6 @@ public void testUpdate() throws Exception {
@Test
public void testGet() throws Exception {
- EntityManager entityManager = getEntityManager();
-
runScript(entityManager, "insert.sql");
Stock acme = createStock("Acme", "ACM", 123.21D, new Date());
@@ -171,8 +152,6 @@ public void testGet() throws Exception {
@Test
public void testGetBySymbol() throws Exception {
- EntityManager entityManager = getEntityManager();
-
runScript(entityManager, "insert.sql");
Stock acme = createStock("Acme", "ACM", 123.21D, new Date());
@@ -189,8 +168,6 @@ public void testGetBySymbol() throws Exception {
@Test
public void testGetAll() throws Exception {
- EntityManager entityManager = getEntityManager();
-
runScript(entityManager, "insert.sql");
List<Stock> result = stockService.getAll();
@@ -222,8 +199,8 @@ private static Stock createStock(String name, String symbol, double value, Date
/**
* <p>Asserts that the actual stock's properties values are correct.</p>
*
- * @param expected the expected stock object
- * @param actual the tested stock object
+ * @param expected the expected stock object
+ * @param actual the tested stock object
*/
private static void assertStock(Stock expected, Stock actual) {
Please sign in to comment.
Something went wrong with that request. Please try again.