JaSST Tohoku 2014
2014/05/23
kyon_mm
- きょん(@kyon_mm) 26歳 ゆとり世代
- なごや で テストの仕事しています
| [user] | |
| name = kyonmm | |
| email = [email protected] | |
| [core] | |
| editor = emacsclient | |
| quotepath = true | |
| [difftool "sourcetree"] | |
| cmd = /Applications/p4merge.app/Contents/MacOS/p4merge \"$LOCAL\" \"$REMOTE\" | |
| path = | |
| [merge] |
| package userguide | |
| import spock.lang.Specification | |
| class WhenJottingDownTask extends Specification{ | |
| def "依頼されたタスクをメモ書きしてあとで見直してから着手してタスクが終わったら消す"(){ | |
| given:"ツールをインストールする" | |
| User.installJot() | |
| when:"チャット上でなにか依頼されて、コンソールでメモする" | |
| def requestedTask = User.receiveTaskOnChat() |
| package org.kyonmm.webapi | |
| import groovy.sql.Sql | |
| import org.junit.Test | |
| import java.sql.Date | |
| class Select { | |
| @Test | |
| void selectFromENEX(){ |
| @Grab('org.xerial:sqlite-jdbc:[3.7.2,)') | |
| @GrabConfig(systemClassLoader=true) | |
| import groovy.sql.Sql | |
| def home = args[0] | |
| def tag = args[1] | |
| def date = args[2] | |
| Class.forName("org.sqlite.SQLite") | |
| using (SqlTransaction transaction = connection.BeginTransaction()) | |
| { | |
| try | |
| { | |
| // 処理 | |
| transaction.Commit(); | |
| } | |
| catch | |
| { | |
| if(MyRollback(transaction) == false){ |
| import groovy.transform.TupleConstructor | |
| Object.metaClass.addRole = {role -> | |
| delegate.metaClass.mixin role | |
| } | |
| @TupleConstructor | |
| class InFrontOfWoman { | |
| def he | |
| InFrontOfWoman(コミュ障 people){ |
| // 実装が透けている例 : 避けたい | |
| def sut = new User() | |
| def fooGame = new FooGame() | |
| sut.touch(fooGame.icon) | |
| // 要求分析や定義に使えそうな例 : 使いたい | |
| def A_user = new User() | |
| def installedFooGame = new FooGame() | |
| A_user.touch(installedFooGame.icon) |
| def OPENING = [ | |
| "「ソフトウェアテストのレトロスペクティブ」kyon_mm", | |
| "「皆さんが聞きたいkyon_mmのこと、私が答えます!」kaori_t_spica", | |
| "「アンケートで書いてくれた質問に答えます!」kyon_mm", | |
| "「Groovy(G*)によるSIer閉鎖空間サバイバル術」nobusue", | |
| ] | |
| def MASAKARIST = [ | |
| "「F# のコンピュテーション式かモナド」 pocketberserker", | |
| "「型とは何か? - CPythonの実装」cocoatomo", |