Commit d12984fefa0169d286e383c472bd38965d7173dd

Authored by Jean-Michel Glorian
1 parent e543990c
Exists in master

fix bug in EpnTap Test about uuid

src/test/java/eu/omp/irap/vespa/epntapclient/EpnTapConnectionTest.java
... ... @@ -345,13 +345,13 @@ public class EpnTapConnectionTest {
345 345 assertEquals(8, granules.size());
346 346 Granule mars = null;
347 347 for (Granule granule : granules) {
348   - if ("Mars".equals(granule.getGranuleUid())) {
  348 + if ("Mars".equals(granule.getTargetName())) {
349 349 mars = granule;
350 350 }
351 351 }
352 352 assertNotNull("granule 'Mars' is not found.", mars);
353 353 assertEquals("4", mars.getObsId());
354   - assertEquals(new Integer(5), mars.getProcessingLevel());
  354 + assertEquals(Integer.valueOf(5), mars.getProcessingLevel());
355 355 }
356 356  
357 357 /**
... ... @@ -370,12 +370,12 @@ public class EpnTapConnectionTest {
370 370 assertEquals(8, granules.size());
371 371 Granule mars = null;
372 372 for (Granule granule : granules) {
373   - if ("Mars".equals(granule.getGranuleUid())) {
  373 + if ("Mars".equals(granule.getTargetName())) {
374 374 mars = granule;
375 375 }
376 376 }
377 377 assertNotNull("granule 'Mars' is not found.", mars);
378 378 assertEquals("4", mars.getObsId());
379   - assertEquals(new Integer(5), mars.getProcessingLevel());
  379 + assertEquals(Integer.valueOf(5), mars.getProcessingLevel());
380 380 }
381 381 }
... ...