Erreur "The JAR of this class file belongs to container 'JUnit 3' which does not allow modifications"
Bonjour,
Lorsque je debug mon test Junit :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| public class hl7Generictest extends TestCase {
public void testBuild() {
buildM();
}
public void buildM() {
System.out.println("PATIENT ENCOUNTER EVENT") ;
PatientEncounter pe = new PatientEncounterImpl();
Participation part = new ParticipationImpl();
Role patient = new RoleImpl();
Person person = new PersonImpl();
Set<II> idSet = new HashSet<II>();
idSet.add(IIimpl.valueOf("125555","","","true"));
SET<II> id = SETjuSetAdapter.valueOf(idSet);
pe.setId(id);
...
}
} |
J'ai une erreur au code pe.setId(id);.
L'erreur est la suivante :
Citation:
The JAR of this class file belongs to container 'JUnit 3' which does not allow modifications
J'ai vérifié que PatientEncounter n'est pas une classe de test. Elle ne fait pas extends TestCase.
Quelqu'un saurait-il m'expliquer comment résoudre ce problème ?
Merci d'avance pour votre aide.