use of org.nextprot.api.core.domain.DbXref in project nextprot-api by calipho-sib.
the class EnsemblXrefURLResolverTest method testResolveEnsemblENSP.
// entry/NX_Q9BXA6/xref.json
@Test
public void testResolveEnsemblENSP() throws Exception {
DbXref xref = DbXrefURLResolverDelegateTest.createDbXref("ENSP00000466056", "Ensembl", "whatever");
Assert.assertEquals("http://www.ensembl.org/Homo_sapiens/Transcript/ProteinSummary?db=core;p=ENSP00000466056", resolver.resolve(xref));
}
use of org.nextprot.api.core.domain.DbXref in project nextprot-api by calipho-sib.
the class HpaXrefURLResolverTest method testResolveHPASubcellular.
// entry/NX_P51610/xref.json
@Test
public void testResolveHPASubcellular() throws Exception {
DbXref xref = DbXrefURLResolverDelegateTest.createDbXref("ENSG00000254647/subcellular", "HPA", "whatever");
Assert.assertEquals("http://www.proteinatlas.org/ENSG00000254647/subcellular", resolver.resolve(xref));
}
use of org.nextprot.api.core.domain.DbXref in project nextprot-api by calipho-sib.
the class IntactXrefURLResolverTest method testResolveIntActNoEBIId.
@Test
public void testResolveIntActNoEBIId() throws Exception {
DbXref xref = DbXrefURLResolverDelegateTest.createDbXref("P51610", "IntAct", "http://www.ebi.ac.uk/intact/pages/interactions/interactions.xhtml?query=%s");
Assert.assertEquals("http://www.ebi.ac.uk/intact/pages/interactions/interactions.xhtml?query=P51610", resolver.resolve(xref));
}
use of org.nextprot.api.core.domain.DbXref in project nextprot-api by calipho-sib.
the class NihArpXrefURLResolverTest method testResolveNIH_ARPMissingDash.
@Test(expected = UnresolvedXrefURLException.class)
public void testResolveNIH_ARPMissingDash() throws Exception {
DbXref xref = DbXrefURLResolverDelegateTest.createDbXref("11411_223", "NIH-ARP", "https://www.aidsreagent.org/reagentdetail.cfm?t=cell_lines&id=%s");
Assert.assertEquals("https://www.aidsreagent.org/reagentdetail.cfm?t=cell_lines&id=223", resolver.resolve(xref));
}
use of org.nextprot.api.core.domain.DbXref in project nextprot-api by calipho-sib.
the class TkgXrefURLResolverTest method testResolveTKGMissingPlaceHolderN.
@Test(expected = UnresolvedXrefURLException.class)
public void testResolveTKGMissingPlaceHolderN() throws Exception {
DbXref xref = DbXrefURLResolverDelegateTest.createDbXref("0377", "TKG", "http://www2.idac.tohoku.ac.jp/dep/ccr/TKGdate/TKGvo10n/%s.html");
Assert.assertEquals("http://www2.idac.tohoku.ac.jp/dep/ccr/TKGdate/TKGvo103/0377.html", resolver.resolve(xref));
}
Aggregations