This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* text file(key , value) -> TreeMap | |
* without charest | |
* @return | |
*/ | |
private static Map<String, String> getMapFromTxt1() { | |
Map<String, String> map = new TreeMap<String, String>(); | |
String path = new File(getPath()).getParent(); | |
StringBuilder sb = new StringBuilder(); | |
sb.append(path).append(File.separator).append("xxx.txt"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Grab("org.codehaus.geb:geb-core:latest.release") | |
@Grab("org.seleniumhq.selenium:selenium-firefox-driver:latest.release") | |
import geb.* | |
class HelloPage extends Page { | |
static url = 'http://localhost:8080/HelloSample/' | |
static at = {title == 'Hello'} | |
static content = { | |
nameInput { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.faces.model.SelectItem; | |
/** | |
* | |
* @author tomo | |
*/ | |
public enum GreetSelect { | |
Hello("1", "Hello"), | |
GoodMorning("2", "Good Morning"), | |
GoodNight("3", "Good Night") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File; | |
import java.io.IOException; | |
import org.apache.commons.io.FileUtils; | |
import org.junit.AfterClass; | |
import org.junit.Assert; | |
import org.junit.BeforeClass; | |
import org.junit.Test; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.OutputType; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class PersonFind { | |
public static void main(String[] args) { | |
List<Person> persons = new ArrayList<>(); | |
persons.add(new Person("name10", 10)); | |
persons.add(new Person("name20", 20)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.List; | |
public class PersonFindErr { | |
public static void main(String[] args) { | |
List<Person> persons = new ArrayList<>(); | |
persons.add(new Person("name10", 10)); | |
persons.add(new Person("name20", 20)); | |
persons.add(new Person("name30", 30)); | |
persons.add(new Person("name40", 40)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.concurrent.FutureTask; | |
import java.util.logging.ConsoleHandler; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; | |
public class LogSample { | |
private static final Logger logger = Logger.getLogger(LogSample.class.getName()); | |
public static void main(String[] args) { | |
logger.setLevel(Level.ALL); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.concurrent.FutureTask; | |
import java.util.logging.ConsoleHandler; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; | |
public class LogSample2 { | |
private static final Logger logger = Logger.getLogger(LogSample.class.getName()); | |
public static void main(String[] args) { | |
logger.setLevel(Level.INFO); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.concurrent.FutureTask; | |
import java.util.logging.ConsoleHandler; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; | |
public class LogSample { | |
private static final Logger logger = Logger.getLogger(LogSample.class.getName()); | |
public static void main(String[] args) { | |
logger.setLevel(Level.ALL); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javafx.application.Application; | |
import javafx.event.ActionEvent; | |
import javafx.event.EventHandler; | |
import javafx.geometry.Insets; | |
import javafx.scene.Scene; | |
import javafx.scene.control.Button; | |
import javafx.scene.control.Label; | |
import javafx.scene.layout.HBox; | |
import javafx.scene.text.Text; | |
import javafx.stage.Stage; |
OlderNewer