@@ -34,6 +34,15 @@ class ScraperDataAdapterTest {
|
||||
assertEquals(123456, ScraperDataAdapter.extractNumericId("A7-1234-56"));
|
||||
}
|
||||
|
||||
@Test
|
||||
@DisplayName("Should return 0 for IDs that exceed Long.MAX_VALUE")
|
||||
void testExtractNumericIdTooLarge() {
|
||||
// These IDs are too large for a long (> 19 digits or > Long.MAX_VALUE)
|
||||
assertEquals(0, ScraperDataAdapter.extractNumericId("856462986966260305674"));
|
||||
assertEquals(0, ScraperDataAdapter.extractNumericId("28492384530402679688"));
|
||||
assertEquals(0, ScraperDataAdapter.extractNumericId("A7-856462986966260305674"));
|
||||
}
|
||||
|
||||
@Test
|
||||
@DisplayName("Should convert scraper auction format to AuctionInfo")
|
||||
void testFromScraperAuction() throws SQLException {
|
||||
|
||||
Reference in New Issue
Block a user