public class YelpTest
extends java.lang.Object
Constructor and Description |
---|
YelpTest() |
Modifier and Type | Method and Description |
---|---|
void |
setUp() |
void |
testExpectNoResults()
Use an invalid longitude and latitude, and expect no results.
|
void |
testExpectResults()
Expect results with a valid latitude and longitude.
|
void |
testNonNullResults()
Makes sure that a string is always returned for the results.
|
void |
testResultMapping()
Makes sure that mapping is correctly done.
|
public void setUp() throws java.lang.Exception
java.lang.Exception
public void testExpectNoResults() throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, java.io.IOException
com.fasterxml.jackson.core.JsonParseException
- Exception during parsing of JSON.com.fasterxml.jackson.databind.JsonMappingException
- Exception during mapping of JSONjava.io.IOException
- general IO exception.public void testExpectResults() throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, java.io.IOException
com.fasterxml.jackson.core.JsonParseException
- Exception during parsing of JSON.com.fasterxml.jackson.databind.JsonMappingException
- Exception during mapping of JSONjava.io.IOException
- general IO exception.public void testNonNullResults()
public void testResultMapping() throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, java.io.IOException
com.fasterxml.jackson.core.JsonParseException
- Exception during parsing of JSON.com.fasterxml.jackson.databind.JsonMappingException
- Exception during mapping of JSONjava.io.IOException
- general IO exception.