Biblioteca Java - Blame information for rev 32

Subversion Repositories:
Rev:
Rev Author Line No. Line
32 mihai 1 /*
2  * To change this license header, choose License Headers in Project Properties.
3  * To change this template file, choose Tools | Templates
4  * and open the template in the editor.
5  */
6 package elevatorcurs.model;
7  
8 import org.junit.After;
9 import org.junit.AfterClass;
10 import org.junit.Before;
11 import org.junit.BeforeClass;
12 import org.junit.Test;
13 import static org.junit.Assert.*;
14  
15 /**
16  *
17  * @author Mihai Hulea mihai.hulea@aut.utcluj.ro
18  */
19 public class ElevatorTest {
20  
21     public ElevatorTest() {
22     }
23  
24     @BeforeClass
25     public static void setUpClass() {
26     }
27  
28     @AfterClass
29     public static void tearDownClass() {
30     }
31  
32     @Before
33     public void setUp() {
34     }
35  
36     @After
37     public void tearDown() {
38     }
39  
40     /**
41      * Test of move method, of class Elevator.
42      */
43     @Test
44     public void testMove() {
45         System.out.println("move");
46         Elevator instance = new Elevator();
47         instance.move();
48         // TODO review the generated test code and remove the default call to fail.
49         fail("The test case is a prototype.");
50     }
51  
52     /**
53      * Test of setCurrentDir method, of class Elevator.
54      */
55     @Test
56     public void testSetCurrentDir() {
57         System.out.println("set setCurrentDir");
58         Direction currentDir = Direction.DOWN;
59         Elevator instance = new Elevator();
60         instance.setCurrentDir(currentDir);
61         assertEquals(Direction.DOWN,    instance.getCurrentDir());
62  
63         instance.setCurrentDir(Direction.UP);
64         assertEquals(Direction.UP,    instance.getCurrentDir());
65     }
66  
67     /**
68      * Test of getPosition method, of class Elevator.
69      */
70     @Test
71     public void testGetPosition() {
72         System.out.println("getPosition");
73         Elevator instance = new Elevator();
74         int expResult = 0;
75         int result = instance.getPosition();
76         assertEquals(expResult, result);
77         // TODO review the generated test code and remove the default call to fail.
78         fail("The test case is a prototype.");
79     }
80  
81     /**
82      * Test of toString method, of class Elevator.
83      */
84     @Test
85     public void testToString() {
86         System.out.println("toString");
87         Elevator instance = new Elevator();
88         String expResult = "";
89         String result = instance.toString();
90         assertEquals(expResult, result);
91         // TODO review the generated test code and remove the default call to fail.
92         fail("The test case is a prototype.");
93     }
94  
95 }