#107 Facade example JavaDoc

This commit is contained in:
Ilkka Seppala 2015-08-18 22:41:20 +03:00
parent 527da253c9
commit 87717a581b
2 changed files with 41 additions and 31 deletions

View File

@ -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();
}
}

View File

@ -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);
}
}