fix tests, discovery

updated compile tests for new minimal AnalysisCallback
moved discovery to discovery/ subproject and updated for new approach
fixed discovery to only find public methods when searching for annotated definitions
extracting inherited definitions unimplemented in api/, so some discovery tests fail
moved discovery classes from sbt.inc package to sbt.compile
This commit is contained in:
Mark Harrah 2010-10-06 08:24:13 -04:00
parent 46f51b6e10
commit c3f54347ef
2 changed files with 1 additions and 13 deletions

View File

@ -77,5 +77,5 @@ object ComponentManagerTest extends Specification
private def writeRandomContent(file: File) = IO.write(file, randomString)
private def randomString = "asdf"
private def withManager[T](f: ComponentManager => T): T =
TestIvyLogger( logger => withTemporaryDirectory { temp => f(new ComponentManager(xsbt.boot.Locks, new xsbt.boot.ComponentProvider(temp), logger)) } )
TestLogger( logger => withTemporaryDirectory { temp => f(new ComponentManager(xsbt.boot.Locks, new xsbt.boot.ComponentProvider(temp), logger)) } )
}

View File

@ -1,12 +0,0 @@
package sbt
class TestIvyLogger extends BufferedLogger(new ConsoleLogger) with IvyLogger
object TestIvyLogger
{
def apply[T](f: IvyLogger => T): T =
{
val log = new TestIvyLogger
log.setLevel(Level.Debug)
log.bufferQuietly(f(log))
}
}