如何从SQL Server中的连接字符串配置@Test
public void testDamage() {
MyPersonClass myPerson = new MyPersonClass();
myPerson.takeDamage(50);
int expectedRemainingLife = 80;
Texture expectedPicture = new Texture(); // You need to load the correct picture here
assertEquals(expectedRemainingLife, myPerson.getLife());
assertEquals(expectedPicture, myPerson.getPicture());
}
(而不是CommandTimeout
)?
我认为查找起来很简单,但显然并非如此。在下面添加了Connect Timeout
。它似乎并没有破坏任何东西,但是我不知道它是否真的在工作(我找不到关于它的文档)
CommandTimeout=60