Package org.gbif.api.model.occurrence
Class DownloadRequestTest
java.lang.Object
org.gbif.api.model.occurrence.DownloadRequestTest
Test cases for DownloadRequest serialization and building.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRequest sent by PyGBIF ≤ 0.6.1.voidRequest sent by RGBIF 3.75+.voidTest three extension situations: known and supported, known but not supported, unknown.voidWorking request at v0.188.voidvoidvoidvoidvoidvoidvoidTests that an empty JSON {} is translated into null.voidTests that an unknown property is rejected.voidvoidvoidvoidvoid
-
Constructor Details
-
DownloadRequestTest
public DownloadRequestTest()
-
-
Method Details
-
testAvailable
-
testBasic
-
testEquals
-
testHashcode
-
testSerde
- Throws:
IOException
-
testPredicateDownloadSerde
- Throws:
IOException
-
testDownloadRequestSerde
- Throws:
IOException
-
testDownloadRequestMissingPredicate
- Throws:
IOException
-
testDownloadRequestSerde2
- Throws:
IOException
-
testSQLDownloadSerde
- Throws:
IOException
-
testDownloadRequestSerdeUnknown
Tests that an unknown property is rejected. For much of the API these are allowed, but it causes problems when typing errors etc trigger all-data downloads.- Throws:
IOException
-
testDownloadRequestSerdeNull
Tests that an empty JSON {} is translated into null.- Throws:
IOException
-
downloadFromPygbifTest
Request sent by PyGBIF ≤ 0.6.1. For backward compatibility, do not change this test! Note the 'created' property, the quoted booleans, and the underscore in notification_address.- Throws:
Exception
-
downloadFromRgbifTest
Request sent by RGBIF 3.75+. For backward compatibility, do not change this test! Note the lack of sendNotification.- Throws:
Exception
-
downloadWithNumbersTest
Working request at v0.188. For backward compatibility, do not change this test! Note the 212 rather than "212".- Throws:
Exception
-
downloadWithExtensionTest
Test three extension situations: known and supported, known but not supported, unknown.- Throws:
Exception
-
existingDownloadsTest
- Throws:
Exception
-