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.Exceptionpublic 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.URISyntaxExceptionjava.io.IOExceptioncom.google.api.server.spi.response.ConflictExceptionpublic void testGetContentBadLocation()
throws com.google.api.server.spi.response.ConflictException,
java.io.IOException,
java.net.URISyntaxException
java.net.URISyntaxExceptionjava.io.IOExceptioncom.google.api.server.spi.response.ConflictExceptionpublic void testGetContentResultsNotEmpty()
throws com.google.api.server.spi.response.ConflictException,
java.io.IOException,
java.net.URISyntaxException
java.net.URISyntaxExceptionjava.io.IOExceptioncom.google.api.server.spi.response.ConflictExceptionpublic void testGetContentWithBadHolidayDate()
throws com.google.api.server.spi.response.ConflictException,
java.io.IOException,
java.net.URISyntaxException
java.net.URISyntaxExceptionjava.io.IOExceptioncom.google.api.server.spi.response.ConflictExceptionpublic void testGetFoursqaureWithBadHolidayDate()
throws com.google.api.server.spi.response.ConflictException,
java.io.IOException,
java.net.URISyntaxException
java.net.URISyntaxExceptionjava.io.IOExceptioncom.google.api.server.spi.response.ConflictExceptionpublic void testGetFoursquare()
throws com.google.api.server.spi.response.ConflictException,
java.io.IOException,
java.net.URISyntaxException
java.net.URISyntaxExceptionjava.io.IOExceptioncom.google.api.server.spi.response.ConflictExceptionpublic void testGetFoursquareListNotEmpty()
throws com.google.api.server.spi.response.ConflictException,
java.io.IOException,
java.net.URISyntaxException
java.net.URISyntaxExceptionjava.io.IOExceptioncom.google.api.server.spi.response.ConflictExceptionpublic void testGetGroupon()
throws com.google.api.server.spi.response.ConflictException,
java.io.IOException,
java.net.URISyntaxException
java.net.URISyntaxExceptionjava.io.IOExceptioncom.google.api.server.spi.response.ConflictExceptionpublic void testGetGrouponListNotEmpty()
throws com.google.api.server.spi.response.ConflictException,
java.io.IOException,
java.net.URISyntaxException
java.net.URISyntaxExceptionjava.io.IOExceptioncom.google.api.server.spi.response.ConflictExceptionpublic void testGetGrouponWithBadHolidayDate()
throws com.google.api.server.spi.response.ConflictException,
java.io.IOException,
java.net.URISyntaxException
java.net.URISyntaxExceptionjava.io.IOExceptioncom.google.api.server.spi.response.ConflictExceptionpublic void testUpdateHoliday()
throws com.google.api.server.spi.response.NotFoundException
com.google.api.server.spi.response.NotFoundException - Thrown if the holiday is not found.