0
に入力されたデータを解析:スポック:エラー、私は、次の場所をブロックしていた場合、ブロック
where:
[area,country,port,dest_area,dest_country,dest_port] << ["アジア" , "日本", "東京(成田・羽田)", "アジア" ,"韓国" , "ソウル"]
そして、このようなエラーを取得する:
java.lang.StringIndexOutOfBoundsException: String index out of range: 4
at jp.co.skygate.groovy.test.AOSearchPageExternalInputDataTest.Select origin(AOSearchPageExternalInputDataTest.groovy:105)
java.lang.StringIndexOutOfBoundsException: String index out of range: 3
at jp.co.skygate.groovy.test.AOSearchPageExternalInputDataTest.Select origin(AOSearchPageExternalInputDataTest.groovy:105)
間違いがありますか?
ポストユニットテストの全ソースコードだけでなく、ここで:ブロック – kazanaki