44
55public class RemoteControlCarTest {
66 @ Test
7- public void Buy_new_car_returns_instance () {
7+ public void buy_new_car_returns_instance () {
88 RemoteControlCar car = RemoteControlCar .buy ();
99 Assert .assertNotNull (car );
1010 }
1111
1212 @ Ignore ("Remove to run test" )
1313 @ Test
14- public void Buy_new_car_returns_new_car_each_time () {
14+ public void buy_new_car_returns_new_car_each_time () {
1515 RemoteControlCar car1 = RemoteControlCar .buy ();
1616 RemoteControlCar car2 = RemoteControlCar .buy ();
1717 Assert .assertNotSame (car2 , car1 );
1818 }
1919
2020 @ Ignore ("Remove to run test" )
2121 @ Test
22- public void New_car_distance_display () {
22+ public void new_car_distance_display () {
2323 RemoteControlCar car = new RemoteControlCar ();
2424 Assert .assertEquals ("Driven 0 meters" , car .distanceDisplay ());
2525 }
2626
2727 @ Ignore ("Remove to run test" )
2828 @ Test
29- public void New_car_battery_display () {
29+ public void new_car_battery_display () {
3030 RemoteControlCar car = new RemoteControlCar ();
3131 Assert .assertEquals ("Battery at 100%" , car .batteryDisplay ());
3232 }
3333
3434 @ Ignore ("Remove to run test" )
3535 @ Test
36- public void Distance_display_after_driving_once () {
36+ public void distance_display_after_driving_once () {
3737 RemoteControlCar car = new RemoteControlCar ();
3838 car .drive ();
3939 Assert .assertEquals ("Driven 20 meters" , car .distanceDisplay ());
4040 }
4141
4242 @ Ignore ("Remove to run test" )
4343 @ Test
44- public void Distance_display_after_driving_multiple_times () {
44+ public void distance_display_after_driving_multiple_times () {
4545 RemoteControlCar car = new RemoteControlCar ();
4646
4747 for (int i = 0 ; i < 17 ; i ++) {
@@ -53,15 +53,15 @@ public void Distance_display_after_driving_multiple_times() {
5353
5454 @ Ignore ("Remove to run test" )
5555 @ Test
56- public void Battery_display_after_driving_once () {
56+ public void battery_display_after_driving_once () {
5757 RemoteControlCar car = new RemoteControlCar ();
5858 car .drive ();
5959 Assert .assertEquals ("Battery at 99%" , car .batteryDisplay ());
6060 }
6161
6262 @ Ignore ("Remove to run test" )
6363 @ Test
64- public void Battery_display_after_driving_multiple_times () {
64+ public void battery_display_after_driving_multiple_times () {
6565 RemoteControlCar car = new RemoteControlCar ();
6666
6767 for (int i = 0 ; i < 23 ; i ++) {
@@ -73,7 +73,7 @@ public void Battery_display_after_driving_multiple_times() {
7373
7474 @ Ignore ("Remove to run test" )
7575 @ Test
76- public void Battery_display_when_battery_empty () {
76+ public void battery_display_when_battery_empty () {
7777 RemoteControlCar car = new RemoteControlCar ();
7878
7979 // Drain the battery
@@ -89,7 +89,7 @@ public void Battery_display_when_battery_empty() {
8989
9090 @ Ignore ("Remove to run test" )
9191 @ Test
92- public void Distance_display_when_battery_empty () {
92+ public void distance_display_when_battery_empty () {
9393 RemoteControlCar car = new RemoteControlCar ();
9494
9595 // Drain the battery
0 commit comments