Downloads % tar xvfz jdk-8-linux-x64.tar.gz
Downloads % sudo mkdir -p /opt/java
Downloads % sudo mv jdk1.8.0 /opt/java/
Downloads % sudo update-alternatives --install "/usr/bin/java" "java" "/opt/java/jdk1.8.0/bin/java" 1
Downloads % sudo update-alternatives --set java /opt/java/jdk1.8.0/bin/java
update-alternatives: /usr/bin/java (java) を提供するために 手動モード で /opt/java/jdk1.8.0/bin/java を使います
Downloads % java -version
java version "1.8.0"
This file contains hidden or 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 sample; | |
import java.text.SimpleDateFormat; | |
import java.util.Calendar; | |
import java.util.Date; | |
import org.hamcrest.BaseMatcher; | |
import org.hamcrest.Description; | |
import org.hamcrest.Matcher; |
This file contains hidden or 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
var express = require('express'); | |
// ... | |
var app = module.exports = express(); | |
// ... |
This file contains hidden or 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 org.codehaus.jackson.map.ObjectMapper; | |
public class QueryMapFactoryTest { | |
@Test | |
public void クエリを作成できること() { | |
Map<String, Object> actual = QueryMapFactoryTest.getQuery(); |
This file contains hidden or 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
@RunWith(Enclosed.class) | |
@Category({Unit.class }) | |
public class FooTest { | |
/** | |
* テスト用Fixture。 | |
*/ | |
static class Fixture { | |
String testComment; | |
/** |
This file contains hidden or 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
public class Foo { | |
public static String testMethod() { | |
return "foo"; | |
} | |
} |
This file contains hidden or 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
var json = { | |
data: 'value' | |
}; | |
JSON.stringify(json); |
This file contains hidden or 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
public class CustomList extends AbstractList<MyElement> { | |
private List<MyElement> list = null; | |
public CustomList() { | |
list = new ArrayList<MyElement>(); | |
} | |
@Override | |
public MyElement get(int index) { |
OlderNewer