File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
main/java/com/bc/fiduceo/reader/insitu/sirds_sst
test/java/com/bc/fiduceo/reader/insitu/sirds_sst Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -264,9 +264,7 @@ static String toRegExPart(String sensorKey) {
264264 int splitIdx = sensorKey .lastIndexOf ("-" );
265265
266266 final String sensor = sensorKey .substring (0 , splitIdx );
267- if (sensor .equals ("argosurf" )) {
268- return "argo_surf" ;
269- } else if (sensor .equals ("driftercmems" )) {
267+ if (sensor .equals ("driftercmems" )) {
270268 return "drifter_cmems" ;
271269 } else {
272270 return sensor ;
Original file line number Diff line number Diff line change @@ -33,12 +33,12 @@ public void testGetRegEx_mooring() {
3333 @ Test
3434 public void testGetRegEx_argosurf () {
3535 final SirdsInsituReader insituReader = new SirdsInsituReader ("argosurf-sirds" );
36- final String expected = "SSTCCI2_refdata_argo_surf_ \\ d{6}.nc" ;
36+ final String expected = "SSTCCI2_refdata_argosurf_ \\ d{6}.nc" ;
3737
3838 assertEquals (expected , insituReader .getRegEx ());
3939 final Pattern pattern = java .util .regex .Pattern .compile (expected );
4040
41- Matcher matcher = pattern .matcher ("SSTCCI2_refdata_argo_surf_202005 .nc" );
41+ Matcher matcher = pattern .matcher ("SSTCCI2_refdata_argosurf_202005 .nc" );
4242 assertTrue (matcher .matches ());
4343
4444 matcher = pattern .matcher ("SSTCCI2_refdata_bottle_198904.nc" );
@@ -85,7 +85,7 @@ public void testExtractYearMonthDayFromFilename() {
8585 @ Test
8686 public void testToRegExPart () {
8787 assertEquals ("argo" , SirdsInsituReader .toRegExPart ("argo-sirds" ));
88- assertEquals ("argo_surf " , SirdsInsituReader .toRegExPart ("argosurf-sirds" ));
88+ assertEquals ("argosurf " , SirdsInsituReader .toRegExPart ("argosurf-sirds" ));
8989 assertEquals ("drifter" , SirdsInsituReader .toRegExPart ("drifter-sirds" ));
9090 assertEquals ("drifter_cmems" , SirdsInsituReader .toRegExPart ("driftercmems-sirds" ));
9191 }
You can’t perform that action at this time.
0 commit comments