public class CeleAPITest
extends java.lang.Object
Constructor and Description |
---|
CeleAPITest() |
Modifier and Type | Method and Description |
---|---|
void |
tearDown() |
void |
test() |
void |
testAddHoliday()
Tests adding of a holiday.
|
void |
testDeleteHoliday()
Tests deleting the holiday.
|
void |
testGetContent()
Successful get content call to verify results are not null
|
void |
testGetContentBadLocation()
Bad Location results in Null Pointer Exception to verify results are not null
|
void |
testGetContentResultsNotEmpty()
Successful get content call to verify results are not null
|
void |
testGetContentWithBadHolidayDate()
Holiday NonExistent get content call to verify results are not null
|
void |
testGetFoursqaureWithBadHolidayDate()
Holiday NonExistent get foursquare call to verify results are not null
|
void |
testGetFoursquare()
Successful get foursquare call to verify results are not null
|
void |
testGetFoursquareListNotEmpty()
Successful get foursquare call to verify results list is not empty
|
void |
testGetGroupon()
Successful get Groupon call to verify results are not null
|
void |
testGetGrouponListNotEmpty()
Successful get Groupon call to verify results are not null
|
void |
testGetGrouponWithBadHolidayDate()
Holiday NonExistent get Groupon call to verify results are not null
|
void |
testUpdateHoliday()
Tests updating of a holiday.
|
public void tearDown() throws java.lang.Exception
java.lang.Exception
public void test()
public void testAddHoliday() throws com.google.api.server.spi.response.ConflictException
com.google.api.server.spi.response.ConflictException
- conflict exception.public void testDeleteHoliday() throws com.google.api.server.spi.response.ConflictException, com.google.api.server.spi.response.NotFoundException
com.google.api.server.spi.response.ConflictException
- conflict exception.com.google.api.server.spi.response.NotFoundException
- if the holiday is not found.public void testGetContent() throws com.google.api.server.spi.response.ConflictException, java.io.IOException, java.net.URISyntaxException
java.net.URISyntaxException
java.io.IOException
com.google.api.server.spi.response.ConflictException
public void testGetContentBadLocation() throws com.google.api.server.spi.response.ConflictException, java.io.IOException, java.net.URISyntaxException
java.net.URISyntaxException
java.io.IOException
com.google.api.server.spi.response.ConflictException
public void testGetContentResultsNotEmpty() throws com.google.api.server.spi.response.ConflictException, java.io.IOException, java.net.URISyntaxException
java.net.URISyntaxException
java.io.IOException
com.google.api.server.spi.response.ConflictException
public void testGetContentWithBadHolidayDate() throws com.google.api.server.spi.response.ConflictException, java.io.IOException, java.net.URISyntaxException
java.net.URISyntaxException
java.io.IOException
com.google.api.server.spi.response.ConflictException
public void testGetFoursqaureWithBadHolidayDate() throws com.google.api.server.spi.response.ConflictException, java.io.IOException, java.net.URISyntaxException
java.net.URISyntaxException
java.io.IOException
com.google.api.server.spi.response.ConflictException
public void testGetFoursquare() throws com.google.api.server.spi.response.ConflictException, java.io.IOException, java.net.URISyntaxException
java.net.URISyntaxException
java.io.IOException
com.google.api.server.spi.response.ConflictException
public void testGetFoursquareListNotEmpty() throws com.google.api.server.spi.response.ConflictException, java.io.IOException, java.net.URISyntaxException
java.net.URISyntaxException
java.io.IOException
com.google.api.server.spi.response.ConflictException
public void testGetGroupon() throws com.google.api.server.spi.response.ConflictException, java.io.IOException, java.net.URISyntaxException
java.net.URISyntaxException
java.io.IOException
com.google.api.server.spi.response.ConflictException
public void testGetGrouponListNotEmpty() throws com.google.api.server.spi.response.ConflictException, java.io.IOException, java.net.URISyntaxException
java.net.URISyntaxException
java.io.IOException
com.google.api.server.spi.response.ConflictException
public void testGetGrouponWithBadHolidayDate() throws com.google.api.server.spi.response.ConflictException, java.io.IOException, java.net.URISyntaxException
java.net.URISyntaxException
java.io.IOException
com.google.api.server.spi.response.ConflictException
public void testUpdateHoliday() throws com.google.api.server.spi.response.NotFoundException
com.google.api.server.spi.response.NotFoundException
- Thrown if the holiday is not found.