???DBUnit?????????
???????????? ???????[ 2013/11/22 16:01:07 ] ????????
?????????????????????ò?????????????????????????????????????????????????????????????????????????prepareData??????κ????DBUnit????????????????????????????????????????????????????????е???????????????????????????????????????е????????????????仯????????????prepareData??????????д?????????????????????????????????????
??????????????·????????????????Table??
create table YouTableName_1(
filed_1 int??
filed_2 varchar2(50)??
filed_3 varchar2(50)
)
|
?????????????????
<?xml version='1.0' encoding='UTF-8'?>
<dataset>
<YouTableName_1 Filed_1="1" Filed_2="f2" Filed_3="f3"/>
<YouTableName_1 Filed_1="2" Filed_2="f2_1" Filed_3="f3_1"/>
</dataset>
|
????????????????????????
<?xml version='1.0' encoding='UTF-8'?>
<dataset>
<YouTableName_1 Filed_1="1" Filed_2="a" Filed_3="a1"/>
<YouTableName_1 Filed_1="2" Filed_2="b" Filed_3="b1"/>
</dataset>
|
????????????????????????Filed_1?1???????Filed_2??Filed_3????ε????????"a"??"a1"????Filed_1?2???????Filed_2??Filed_3????ε????????"b"??"b1"???????????????????????????????????????????
?????????????UpdateTest????????????
import java.sql.Connection;
import java.sql.SQLException;
public class UpdateTest {
private static boolean commit = true;
public UpdateTest() {
}
private void commit(Connection conn) throws SQLException {
if (commit) {
conn.commit();
}
}
public void updateFiled(Connection conn) throws SQLException {
conn.createStatement().execute("update YouTableName_1 set filed_2='a'??filed_3='a1' where filed_1=1");
conn.createStatement().execute("update YouTableName_1 set filed_2='b'??filed_3='b1' where filed_1=2");
commit(conn);
}
}
|
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
iOS???????mocha??chai??sinon??istanbul???????????????????????????????????????д?????Java????????7??????Android?????????Robolectric3.0????(?)???Kiwi?????????????????????????????????Python?????????????????????????????????????Controller????????д?????????10???????????????????Angular????????????Component??Directive??Pipe ???ServiceAndroid????????????????????????????????--Mockito??????iOS UnitTest???????Vue?????????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????