2010年6月30日 星期三

JUnit

說明:
使用 Eclipse Junit


範例:
{{{
package test;

import static org.junit.Assert.*;
import org.junit.Test;

import net.asgc.gap.portal.handler.AutoDock4Handler;


public class AutoDockHandlerTest{
AutoDock4Handler ad4 = new AutoDock4Handler();

@Test
public void testAddParam() {
ad4.addParam("targetSEPath", "aaaa");
}

@Test
public void testCheckParameter() {
ad4.addParam("targetSEPath", "aaaa");
ad4.addParam("ligandSEPath", "bbb");
ad4.addParam("dpfSEPath", "ccc");

assertTrue(ad4.checkParameter());
}
}
}}}

沒有留言:

張貼留言