-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCdkApiTest.java
More file actions
26 lines (21 loc) · 754 Bytes
/
Copy pathCdkApiTest.java
File metadata and controls
26 lines (21 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package cdkapi;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;
import static org.junit.Assert.assertEquals;
@RunWith(SpringJUnit4ClassRunner.class)
@WebAppConfiguration
@ContextConfiguration({
"classpath:/web-app-context.xml",
"classpath:/test-context.xml"})
public class CdkApiTest {
@Autowired
ApiClient apiClient;
@Test
public void returnsMwFromSmiles() {
assertEquals(44.09573372097032, apiClient.getStructInfo("CCC").mw, 0);
}
}