[Junit] Problème "InitializationError"
Bonjour,
Je rencontre un problème avec JUnit et Eclipse.
J'ai bien ajouté au projet le plugin présent dans le dossier d'installation d'Eclipse.
Quand je fait clique droit, New File j'ai bien JUnit Test Case.
Je choisis les méthodes que je souhaite tester de ma classe ...
Tout fonctionne bien mais quand j'exécute mes tests, j’obtiens très rapidement cette erreur :
Citation:
methode "initializationError" not found. Opening the test case
Je ne comprend pas d'où cela peut provenir et je ne trouve rien sur internet ...
Cela m’empêche de lancer n'importe quel test ...
Merci d'avance !
PS :Voici mes test simples :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
| package fr.univavignon.m1informatique.rgla.isarchi;
import static org.junit.Assert.*;
import junit.framework.Assert;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
/**
* @author Sammy
*
*/
public class IsComponentTest {
public static Boolean test;
@BeforeClass
public static void beforeClassTest()
{
test = true;
}
@AfterClass
public static void AfterClassTest()
{
test = false;
}
/**
* Test method for {@link fr.univavignon.m1informatique.rgla.isarchi.ISComponent#ISComponent(fr.univavignon.m1informatique.rgla.directory.DistinguishedName, fr.univavignon.m1informatique.rgla.isarchi.ISComponentType, java.lang.String)}.
*/
@Test
public void testISComponent() {
Assert.assertTrue(true);
}
/**
* Test method for {@link fr.univavignon.m1informatique.rgla.isarchi.ISComponent#getUnitName()}.
*/
@Test
public void testGetUnitName() {
fail("Not yet implemented");
}
/**
* Test method for {@link fr.univavignon.m1informatique.rgla.isarchi.ISComponent#getType()}.
*/
@Test
public void testGetType() {
fail("Not yet implemented");
}
/**
* Test method for {@link fr.univavignon.m1informatique.rgla.isarchi.ISComponent#getSimpleName()}.
*/
@Test
public void testGetSimpleName() {
fail("Not yet implemented");
}
} |