com.parthparekh.service
Class TestUtils

java.lang.Object
  extended by com.parthparekh.service.TestUtils

@Component
public class TestUtils
extends java.lang.Object

Utility functions for test


Field Summary
private  Cache cache
           
private static org.slf4j.Logger logger
           
 
Constructor Summary
TestUtils()
           
 
Method Summary
 void clearCache()
           
 void clearDb()
           
 Product createProduct()
           
 void validateProduct(Product product)
           
 void validateUpdatedProduct(Product expected, Product actual)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final org.slf4j.Logger logger

cache

@Autowired
@Qualifier(value="defaultCache")
private Cache cache
Constructor Detail

TestUtils

public TestUtils()
Method Detail

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)