com.parthparekh.service
Class TestUtils
java.lang.Object
com.parthparekh.service.TestUtils
@Component
public class TestUtils
- extends java.lang.Object
Utility functions for test
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static final org.slf4j.Logger logger
cache
@Autowired
@Qualifier(value="defaultCache")
private Cache cache
TestUtils
public TestUtils()
createProduct
public Product createProduct()
clearDb
public void clearDb()
throws java.net.UnknownHostException
- Throws:
java.net.UnknownHostException
clearCache
public void clearCache()
validateProduct
public void validateProduct(Product product)
validateUpdatedProduct
public void validateUpdatedProduct(Product expected,
Product actual)