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
def method(Map map) { | |
println 'signatures <map>' | |
println "$map" | |
} | |
def method(Map map, String str) { | |
println 'signatures <map, String>' | |
println "$map, $str" | |
} |
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
@Grab('com.ibm.icu:icu4j:4.8.1.1') | |
import com.ibm.icu.text.Transliterator | |
def transliterator = Transliterator.getInstance('Fullwidth-Halfwidth') | |
def testData = [ | |
[ input: '這いよれ! ニャル子さん 4' , | |
expect: '這いよれ! ニャル子さん 4' ], | |
[ input: 'ABC' , | |
expect: 'ABC' ], |
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
-- [実行方法] | |
-- sqlplus scott/tiger@localhost:1521/sid @create_ddl.sql | |
-- [出力結果] | |
-- create_table.sql | |
-- [参考] | |
-- http://oracle.se-free.com/ddl/A1_get_ddl.html | |
set long 2000 | |
set heading off | |
set line 120 |
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
; | |
; fizzbuzz1 | |
; | |
(def x | |
(for [i (range 1 101)] | |
(cond | |
(and | |
(= (mod i 3) 0) | |
(= (mod i 5) 0)) "FizzBuzz" |
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 static org.hamcrest.CoreMatchers.*; | |
import static org.junit.Assert.*; | |
import java.io.*; | |
import java.util.*; | |
import org.junit.*; | |
public class PropertyReaderTest { | |
/** メインのテスト */ | |
@Test public void キーを使って値を取得するサンプル() { | |
PropertyReader propReader = new PropertyReader(); |
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 static org.junit.Assert.*; | |
import static org.hamcrest.CoreMatchers.*; | |
import java.util.List; | |
import java.util.ArrayList; | |
import org.junit.Test; | |
public class EnumTest { | |
@Test |
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 fumokmm.npnl; | |
import static org.junit.Assert.*; | |
import java.beans.PropertyDescriptor; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
import org.junit.Test; |