#1321 Renamed main class

This commit is contained in:
Ashish Trivedi 2020-08-10 13:06:46 +05:30
parent 4008ae41b5
commit 5527cf4234
6 changed files with 6 additions and 6 deletions

View File

@ -24,7 +24,7 @@ The `Hotel` class takes care of booking and cancelling room reservations.
```java
public class Hotel {
private static final Logger LOGGER = LoggerFactory.getLogger(TransactionScriptApp.class);
private static final Logger LOGGER = LoggerFactory.getLogger(App.class);
private HotelDaoImpl hotelDao;

View File

@ -1,6 +1,6 @@
@startuml
package com.ashishtrivedi16.transaction-script {
class TransactionScriptApp {
class App {
- H2_DB_URL : String {static}
- LOGGER : Logger {static}
- addRooms(hotelDaoImpl : HotelDaoImpl) {static}

View File

@ -60,7 +60,7 @@
<configuration>
<archive>
<manifest>
<mainClass>com.ashishtrivedi16.transactionscript.TransactionScriptApp</mainClass>
<mainClass>com.ashishtrivedi16.transactionscript.App</mainClass>
</manifest>
</archive>
</configuration>

View File

@ -32,7 +32,7 @@ import org.slf4j.LoggerFactory;
public class App {
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.

View File

@ -28,7 +28,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
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;

View File

@ -31,6 +31,6 @@ import org.junit.jupiter.api.Test;
public class AppTest {
@Test
public void test() throws Exception {
TransactionScriptApp.main(new String[]{});
App.main(new String[]{});
}
}