Skip to content

Commit cdd1c52

Browse files
committed
fix: Reverted the unnecessary changes for Lesson14.java & EcommerceSystemTest.java
1 parent 9952bf9 commit cdd1c52

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

lesson_14/exceptions/exceptions_app/src/main/java/com/codedifferently/lesson14/Lesson14.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
public class Lesson14 {
44

55
public static void main(String[] args) {
6-
76
System.out.println("Hello World");
87
}
9-
}
8+
}

lesson_14/exceptions/exceptions_app/src/test/java/com/codedifferently/lesson14/ecommerce/EcommerceSystemTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import static org.assertj.core.api.Assertions.assertThat;
44
import static org.assertj.core.api.Assertions.assertThatThrownBy;
5-
65
import org.junit.jupiter.api.BeforeEach;
76
import org.junit.jupiter.api.Test;
87

@@ -58,7 +57,7 @@ void testCancelOrder() throws Exception {
5857
}
5958

6059
@Test
61-
void testCheckOrderStatus_orderDoesNotExist() throws Exception {
60+
void testCheckOrderStatus_orderDoesNotExist() {
6261
// Act
6362
assertThatThrownBy(() -> ecommerceSystem.checkOrderStatus("1"))
6463
.isInstanceOf(OrderNotFoundException.class)
@@ -82,4 +81,4 @@ void testCheckOrderStatus_orderCancelled() throws Exception {
8281
.isInstanceOf(OrderNotFoundException.class)
8382
.hasMessage("Order with ID 58 not found");
8483
}
85-
}
84+
}

0 commit comments

Comments
 (0)