Created
May 11, 2016 07:22
-
-
Save daipresents/a4cec1c392eadbdbdd7635aa53efc846 to your computer and use it in GitHub Desktop.
Concordionを使ってユーザストーリの受け入れテストをHTMLで作ってみる
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 com.example.specs.user; | |
| import org.concordion.integration.junit3.ConcordionTestCase; | |
| import com.example.User; | |
| import com.example.UserManagement; | |
| public class UserManagementTest extends ConcordionTestCase { | |
| public boolean registUser(String name, String age) { | |
| User testUser = new User(name, Integer.parseInt(age)); | |
| return new UserManagement().registUser(testUser); | |
| } | |
| } |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <html xmlns:concordion="http://www.concordion.org/2007/concordion"> | |
| <head> | |
| <link href="../concordion.css" rel="stylesheet" type="text/css" /> | |
| </head> | |
| <body> | |
| <h1>Epic : User Management</h1> | |
| <h2>User Story : ユーザを新規登録する</h2> | |
| <p> | |
| 未登録のユーザとして、<br/> | |
| ユーザ登録ができる。<br/> | |
| なぜなら、登録することで様々なサービスを提供できるから。 | |
| </p> | |
| <h3>Acceptance Test</h3> | |
| <p> | |
| まだユーザ登録していない利用ユーザである | |
| 名前:<b concordion:set="#name">Dai</b>、 | |
| 年齢:<b concordion:set="#age">24</b>を使って、<br/> | |
| ユーザ登録すると<b concordion:assertEquals="registUser(#name, #age)">true</b>が返ってくる。 | |
| </p> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment