Code example for Collection

Methods: containssize

0
	} 
	 
	public void testgetExperimentTypeNames(){ 
		//Test1: 
		Collection<String> expTypeNames = manager.getExperimentTypesNames();
		assertEquals(experimentTypes, expTypeNames.size());
		assertTrue(expTypeNames.contains(sampleTypeName));
		 
		//Test2: 
		assertEquals(this.sampleTypeName,manager.getExperimentTypeName(this.sampleTypeID));
	} 
	 
	public void testExperimentTypeAndNames(){ 
		Map<String,String> idNames = manager.getExperimentTypeIDsandNames();
		assertEquals(experimentTypes,idNames.size());
		assertTrue(idNames.containsKey(this.sampleTypeID));
		assertTrue(idNames.containsValue(this.sampleTypeName));
	} 
} 
Experience pair programming with AI  Get Codota for Java