int u = SiftsClient.UNASSIGNED;
- HashMap<Integer, int[]> expectedMapping = new HashMap<Integer, int[]>();
+ HashMap<Integer, int[]> expectedMapping = new HashMap<>();
@BeforeTest(alwaysRun = true)
public void populateExpectedMapping() throws SiftsException
Cache.loadProperties("test/jalview/io/testProps.jvprops");
// SIFTs entries are updated weekly - so use saved SIFTs file to enforce
// test reproducibility
- new SiftsSettings();
SiftsSettings.setSiftDownloadDirectory(jalview.bin.Cache.getDefault(
"sifts_download_dir", DEFAULT_SIFTS_DOWNLOAD_DIR));
SiftsSettings.setMapWithSifts(true);
@Test(groups = { "Network" })
private void getAtomIndexTest()
{
- ArrayList<Atom> atoms = new ArrayList<Atom>();
+ ArrayList<Atom> atoms = new ArrayList<>();
Atom atom = new Atom(u, u, u);
atom.resNumber = 43;
atom.atomIndex = 7;
atoms.add(atom);
int actualAtomIndex = siftsClient.getAtomIndex(1, atoms);
- Assert.assertEquals(actualAtomIndex, siftsClient.UNASSIGNED);
+ Assert.assertEquals(actualAtomIndex, SiftsClient.UNASSIGNED);
actualAtomIndex = siftsClient.getAtomIndex(43, atoms);
Assert.assertEquals(actualAtomIndex, 7);
}