Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Java by AliLou ( 6 years ago )
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package TriangleTP;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;
/**
*
* @author Msi
*/
public class FonctionsIT {
public FonctionsIT() {
}
@BeforeClass
public static void setUpClass() {
}
@AfterClass
public static void tearDownClass() {
}
@Before
public void setUp() {
}
@After
public void tearDown() {
}
/**
* Test of testeTriangle method, of class Fonctions.
*/
int a = 1;
int b = 2;
int c = 4;
@Test
public void testTesteTriangle() {
System.out.println("testeTriangle");
Fonctions instance = new Fonctions();
boolean result = instance.testeTriangle(a, b, c);
assertTrue("Not a Triangle", result);
// TODO review the generated test code and remove the default call to fail.
//fail("The test case is a prototype.");
}
/**
* Test of testeEquilateral method, of class Fonctions.
*/
@Test
public void testTesteEquilateral() {
System.out.println("testeEquilateral");
Fonctions instance = new Fonctions();
boolean result = instance.testeEquilateral(a, b, c);
assertTrue("Triangle non Equilateral", result);
// TODO review the generated test code and remove the default call to fail.
//fail("The test case is a prototype.");
}
/**
* Test of testeIsocele method, of class Fonctions.
*/
@Test
public void testTesteIsocele() {
System.out.println("testeIsocele");
Fonctions instance = new Fonctions();
boolean result = instance.testeIsocele(a, b, c);
assertTrue("Triangle non Isocele", result);
// TODO review the generated test code and remove the default call to fail.
// fail("The test case is a prototype.");
}
/**
* Test of testeQuelconque method, of class Fonctions.
*/
@Test
public void testTesteQuelconque() {
System.out.println("testeQuelconque");
Fonctions instance = new Fonctions();
boolean result = instance.testeQuelconque(a, b, c);
assertTrue("Triangle Soit Equilateral ou Isocele", result);
// TODO review the generated test code and remove the default call to fail.
// fail("The test case is a prototype.");
}
}
Revise this Paste