Code example for SortedMap

Methods: put, size

0
 
	public void testGetSubmissionDays() { 
		AnnotationReport annotationReport = constructReport();
		 
		SortedMap<Date,Integer> submissionDays = annotationReport.getSubmissionDays();
		assertTrue(submissionDays.size()==2);
		try { 
			submissionDays.put(new Date(), 2);
			fail("should be unmodifiable");
		} 
		catch(Exception ex) {
			//ok 
		} 
		 
        Calendar start = new GregorianCalendar();
        start.set(2007,7,5,0,0,0);
         
        Calendar end = new GregorianCalendar();
        end.set(2007,10,6,0,0,0);
         
		assertTrue(annotationReport.getAnnotationCountReport()!=null);