⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainblock.java

📁 噶额外噶外骨骼感广泛高热感 就 啊啊
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -