incubator-depot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam R. B. Jack" <aj...@trysybase.com>
Subject Loading test resources
Date Thu, 29 Apr 2004 18:55:36 GMT
I think we need to get src/resources/test into the classpath (in Eclipse and
Ant) for these to work. Or, can we add ./src/resources/test to them?
Thougts?

package org.apache.depot.update.util.security;

 ...

public void testGetDigest() throws Exception {
ClassLoader clazzLoader = this.getClass().getClassLoader();

URL urlHashFile =
clazzLoader.getResource("org/apache/depot/update/util/security/test.txt");

URL urlMetaFile =
clazzLoader.getResource("org/apache/depot/update/util/security/test.txt.md5"
);



regards

Adam

--
Experience the Unwired Enterprise:
http://www.sybase.com/unwiredenterprise
Try Sybase: http://www.try.sybase.com


Mime
View raw message