リビジョン 88e074e8
| AnalogClockDrawing/test/analogclock/AnalogClockDrawingTest.java | ||
|---|---|---|
|
import org.junit.Test;
|
||
|
|
||
|
/**
|
||
|
* 時計のパーツを描画してファイルに出力する機能を持つ
|
||
|
*
|
||
|
* @author TAKAHASHI,Toru
|
||
|
*/
|
||
| ... | ... | |
|
}
|
||
|
|
||
|
@Test
|
||
|
public void testCreateDial() throws IOException {
|
||
|
createSceneAndCapture(sut.createDial(), "clockdial.png");
|
||
|
public void testCreateClockDial() throws IOException {
|
||
|
createSceneAndCapture(sut.createClockDial(), "clockdial.png");
|
||
|
}
|
||
|
|
||
|
@Test
|
||
|
public void testCreateCircle() throws IOException {
|
||
|
createSceneAndCapture(sut.createCircle(), "clockCircle.png");
|
||
|
}
|
||
|
|
||
|
@Test
|
||
| ... | ... | |
|
|
||
|
@Test
|
||
|
public void testCreateSecondsHand() {
|
||
|
createSceneAndCapture(sut.createSecondsHand(), "clockSecondsHand.png");
|
||
|
createSceneAndCapture(sut.createSecondHand(), "clockSecondsHand.png");
|
||
|
}
|
||
|
|
||
|
@Test
|
||
アニメーションの実現にTimeLineではなくRotateTransitionを使うように修正した