Skip to content

Commit 6119a0e

Browse files
Added a test for App.java
1 parent d8d07a4 commit 6119a0e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

money/src/test/java/com/iluwater/money/MoneyTest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import com.iluwatar.CannotAddTwoCurrienciesException;
66
import com.iluwatar.CannotSubtractException;
77
import com.iluwatar.Money;
8+
import com.iluwatar.App;
89

910

1011
class MoneyTest {
@@ -112,4 +113,13 @@ void testExchangeCurrency_NegativeExchangeRate() {
112113
money.exchangeCurrency("EUR", -0.85);
113114
});
114115
}
116+
117+
118+
@Test
119+
void testAppExecution() {
120+
assertDoesNotThrow(() -> {
121+
App.main(new String[]{});
122+
}, "App execution should not throw any exceptions");
123+
}
124+
115125
}

0 commit comments

Comments
 (0)