最低限度,一个JUnit测试用例有一个如列表1代码中所示的常用结构。
At minimum, a JUnit test case has the common structure shown in code Listing 1.
一个代码列表是一列拥有特定含义的惟一代码值,比如产品描述符、常用术语、国家或城市列表。
A code list is a list of unique code values that have specific meanings, such as product descriptors, frequently used terms, and lists of countries or cities.
列表12代码片段建立了一个 oConnectionInfos 对象,使用您的用户名和密码初始化了这个对象,然后将其设置在会话范围中。
The Listing 12 code snippet creates an oConnectionInfos object, initializes it with your username and password values, and then sets it in session scope.
应用推荐