Planete extends ObjetSpatial { public Texture reqTexture() { return texture; } Planete(double pMasse,
                 Vecteur pPosition,
                 double pRayon,
                 double pRayonAtmosphere,
                 Color pCouleurAtmosphere);  Planete(double pMasse,
                 double pPositionX,
                 double pPositionY,
                 double pRayon,
                 double pRayonAtmosphere,
                 Color pCouleurAtmosphere); void asgTexture(Texture pTexture); Texture reqTexture(); void asgRayon(double pRayon); double reqRayon(); void asgRayonAtmosphere(double pRayonAtmosphere); double reqRayonAtmosphere(); void asgCouleurAtmosphere(Color pCouleurAtmosphere); Color reqCouleurAtmosphere(); Node reqNoeud(); void creeNoeud(); Vecteur reqForceExt(); void miseAJourGraphique(double dt); void miseAJourPhysique(double dt); void surCollision(Corps c); static final Texture TEXTURE_DEFAUT; static final double RAYON_DEFAUT; static final boolean STATIC_DEFAUT; static final Vecteur VITESSE_DEFAUT; static final double RAYON_ATMOSPHERE_DEFAUT; static final Color COULEUR_ATMOSHPERE_DEFAUT; static final double PLANETE_MASSE_DEFAUT; }
@Test public void testTexture() { assertEquals(Planete.Texture.BLEUE, Planete.Texture.reqTexture("bleue")); assertEquals(Planete.Texture.JAUNE, Planete.Texture.reqTexture("jaune")); assertEquals(Planete.Texture.MAGENTA, Planete.Texture.reqTexture("MAGENTA")); assertEquals(Planete.Texture.ORANGE, Planete.Texture.reqTexture("orange")); assertEquals(Planete.Texture.ROUGE, Planete.Texture.reqTexture("rouge")); assertEquals(Planete.Texture.VERTE, Planete.Texture.reqTexture("verte")); assertEquals(Planete.TEXTURE_DEFAUT, Planete.Texture.reqTexture("oiasdfkhaskjfh")); assertEquals("/res/planeteBleue.png", Planete.Texture.BLEUE.reqTexture()); }