@@ -48,19 +48,19 @@ void testRxVersions() throws IOException {
4848
4949 @ Test
5050 void testRxById () throws IOException {
51- Rx rx = _RX .getById ("latest" , "53c44afe102c1290262dc672 " ).execute ().body ();
51+ Rx rx = _RX .getById ("latest" , "53c44b0a102c1290262dce76 " ).execute ().body ();
5252
5353 assertNotNull (rx );
54- assertEquals ("ABT-751 " , rx .getName ());
54+ assertEquals ("Imatinib mesylate " , rx .getName ());
5555 assertTrue (rx .getAlternateName ().size () > 1 );
5656 assertEquals (Rx .Type .DRUG , rx .getType ());
5757 assertNull (rx .getHistology ());
58- assertTrue (rx .getRemarks ().startsWith ("Phase II ALL " ));
58+ assertTrue (rx .getRemarks ().startsWith ("January 31, 2012 " ));
5959 assertNull (rx .getEvsId ());
6060 assertNull (rx .getAbbreviation ());
6161 assertEquals (Collections .singletonList ("Chemotherapy" ), rx .getCategory ());
6262 assertTrue (rx .getSubcategory ().size () > 0 );
63- assertNull ( rx .getNscNumber ());
63+ assertEquals ( 1 , rx .getNscNumber (). size ());
6464 assertNull (rx .getDrugs ());
6565 assertNull (rx .getRadiation ());
6666 assertNull (rx .getHidden ());
@@ -72,7 +72,17 @@ void testRxById() throws IOException {
7272 assertNull (rx .getNote ());
7373 assertNull (rx .getFieldNotes ());
7474 assertNull (rx .getScore ());
75- assertEquals (Arrays .asList ("neuroblastoma" , "Pediatric ALL" ), rx .getPrimarySite ());
75+ assertEquals (Arrays .asList ("aggressive mastocytosis" ,
76+ "chronic eosinophilic leukemia" ,
77+ "Colorectal" ,
78+ "dermatofibrosarcoma protuberans" ,
79+ "gastric" ,
80+ "GIST" ,
81+ "hypereosinophilic syndrome" ,
82+ "leukemia" ,
83+ "lung" ,
84+ "other cancer" ,
85+ "Ph+ALL" ), rx .getPrimarySite ());
7686 assertNull (rx .getHistory ());
7787 }
7888
@@ -112,8 +122,8 @@ void testRxSearch() throws IOException {
112122
113123 assertNotNull (results );
114124 assertEquals (25 , results .getCount ().longValue ());
115- assertEquals (12 , results .getTotal ().longValue ());
116- assertEquals (12 , results .getResults ().size ());
125+ assertEquals (8 , results .getTotal ().longValue ());
126+ assertEquals (8 , results .getResults ().size ());
117127 assertEquals (Collections .singletonList ("abt" ), results .getTerms ());
118128
119129 search .setMode (PublishableSearch .SearchMode .OR );
0 commit comments