mainblock.java

来自「噶额外噶外骨骼感广泛高热感 就 啊啊」· Java 代码 · 共 54 行

JAVA
54
字号
package comptest.java.bankingtestcase1;

import itso.bank.facade.BankingTest;
import itso.bank.model.Account;

import junit.extensions.RepeatedTest;
import junit.framework.Test;
import junit.framework.TestSuite;

import com.ibm.etools.comptest.java.junit.ComptestSequentialTestSuite;
import com.ibm.etools.comptest.java.junit.ComptestTestCase;

/**
 * Main Block
 *
 * Top-level block for the testcase.
 */
public class MainBlock extends ComptestTestCase {
	/**
	 * Constructor for MainBlock.
	 * @param name
	 */
	public MainBlock(String name) {
		super(name);
	}

	/**
	 * Returns the JUnit test suite implemented by this
	 * test class.
	 */
	public static Test suite() {
		TestSuite testSuite =
			new ComptestSequentialTestSuite(MainBlock.class.getName());

		testSuite.addTest(new MainBlock("testGetAccount"));

		return new RepeatedTest(testSuite, 1);
	}

	/**
	 * testGetAccount
	 *
	 * Test getting account details for a valdi account ID
	 */
	public void testGetAccount() {
		// Enter your code here
		try {
			BankingTest banking = new BankingTest();
			Account account = banking.getAccount("104-4001");
		} catch (Exception ex) {
			fail(ex.getMessage());
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?