#107 Facade example JavaDoc
This commit is contained in:
parent
527da253c9
commit
87717a581b
@ -1,17 +1,22 @@
|
||||
package com.iluwatar.facade;
|
||||
|
||||
/**
|
||||
*
|
||||
* Facade (DwarvenGoldmineFacade) provides simpler interface to subsystem.
|
||||
* http://en.wikipedia.org/wiki/Facade_pattern
|
||||
*
|
||||
*/
|
||||
public class App {
|
||||
|
||||
public static void main(String[] args) {
|
||||
DwarvenGoldmineFacade facade = new DwarvenGoldmineFacade();
|
||||
facade.startNewDay();
|
||||
facade.digOutGold();
|
||||
facade.endDay();
|
||||
}
|
||||
}
|
||||
package com.iluwatar.facade;
|
||||
|
||||
/**
|
||||
*
|
||||
* Facade ({@link DwarvenGoldmineFacade}) provides simpler interface to subsystem.
|
||||
* <p>
|
||||
* http://en.wikipedia.org/wiki/Facade_pattern
|
||||
*
|
||||
*/
|
||||
public class App {
|
||||
|
||||
/**
|
||||
* Program entry point
|
||||
* @param args command line args
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
DwarvenGoldmineFacade facade = new DwarvenGoldmineFacade();
|
||||
facade.startNewDay();
|
||||
facade.digOutGold();
|
||||
facade.endDay();
|
||||
}
|
||||
}
|
||||
|
@ -1,14 +1,19 @@
|
||||
package com.iluwatar.facade;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import com.iluwatar.facade.App;
|
||||
|
||||
public class AppTest {
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
String[] args = {};
|
||||
App.main(args);
|
||||
}
|
||||
}
|
||||
package com.iluwatar.facade;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import com.iluwatar.facade.App;
|
||||
|
||||
/**
|
||||
*
|
||||
* Application test
|
||||
*
|
||||
*/
|
||||
public class AppTest {
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
String[] args = {};
|
||||
App.main(args);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user