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