Uploaded image for project: 'NetarchiveSuite'
  1. NetarchiveSuite
  2. NAS-2275

Replace ResumptionTokenTest by a real junit test

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • Test
    • None

    Description

      Replace by a real junit test

      The code has since vanished from the codebase, so here it is:

      public static void main(String[] args) {
       	 		        String sample = "<resumptionToken cursor=\"100\" completeListSize=\"421653\">oai_dc/421653/56199935/200/0/447/x/x/x</resumptionToken>";
       	 		        String pattern = "(?i)<resumptionToken\\s*cursor=\"[0-9]+\"\\s*completeListSize=\"[0-9]+\">\\s*(.*)</resumptionToken>";
       	 		        Matcher m = Pattern.compile(pattern).matcher(sample);
       	 		        if (m.find()) {
       	 	            System.out.println("PURE pattern found" + m.group(1) );
       	 	            
       	 	  }
       	 	 }
      

      Attachments

        Activity

          People

            svc Søren Vejrup Carlsen (Inactive)
            svc Søren Vejrup Carlsen (Inactive)
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: