提交 5527cf42 编写于 作者: A Ashish Trivedi

#1321 Renamed main class

上级 4008ae41
...@@ -24,7 +24,7 @@ The `Hotel` class takes care of booking and cancelling room reservations. ...@@ -24,7 +24,7 @@ The `Hotel` class takes care of booking and cancelling room reservations.
```java ```java
public class Hotel { public class Hotel {
private static final Logger LOGGER = LoggerFactory.getLogger(TransactionScriptApp.class); private static final Logger LOGGER = LoggerFactory.getLogger(App.class);
private HotelDaoImpl hotelDao; private HotelDaoImpl hotelDao;
......
@startuml @startuml
package com.ashishtrivedi16.transaction-script { package com.ashishtrivedi16.transaction-script {
class TransactionScriptApp { class App {
- H2_DB_URL : String {static} - H2_DB_URL : String {static}
- LOGGER : Logger {static} - LOGGER : Logger {static}
- addRooms(hotelDaoImpl : HotelDaoImpl) {static} - addRooms(hotelDaoImpl : HotelDaoImpl) {static}
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
<configuration> <configuration>
<archive> <archive>
<manifest> <manifest>
<mainClass>com.ashishtrivedi16.transactionscript.TransactionScriptApp</mainClass> <mainClass>com.ashishtrivedi16.transactionscript.App</mainClass>
</manifest> </manifest>
</archive> </archive>
</configuration> </configuration>
......
...@@ -32,7 +32,7 @@ import org.slf4j.LoggerFactory; ...@@ -32,7 +32,7 @@ import org.slf4j.LoggerFactory;
public class App { public class App {
private static final String H2_DB_URL = "jdbc:h2:~/test"; private static final String H2_DB_URL = "jdbc:h2:~/test";
private static final Logger LOGGER = LoggerFactory.getLogger(TransactionScriptApp.class); private static final Logger LOGGER = LoggerFactory.getLogger(App.class);
/** /**
* Program entry point. * Program entry point.
......
...@@ -28,7 +28,7 @@ import org.slf4j.Logger; ...@@ -28,7 +28,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
public class Hotel { public class Hotel {
private static final Logger LOGGER = LoggerFactory.getLogger(TransactionScriptApp.class); private static final Logger LOGGER = LoggerFactory.getLogger(App.class);
private final HotelDaoImpl hotelDao; private final HotelDaoImpl hotelDao;
......
...@@ -31,6 +31,6 @@ import org.junit.jupiter.api.Test; ...@@ -31,6 +31,6 @@ import org.junit.jupiter.api.Test;
public class AppTest { public class AppTest {
@Test @Test
public void test() throws Exception { public void test() throws Exception {
TransactionScriptApp.main(new String[]{}); App.main(new String[]{});
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册