SDK: make 'mkstub' less verbose.

mkstub is the tool used to stub the google_apis maps.jar.
Since we're integrating it in the build, we want to control its verbosity.

Change-Id: Ic0cfacb79a0aa260bcafb54bdc6bdb5a98b1c87a
This commit is contained in:
Raphael
2011-02-03 22:56:14 -08:00
parent 7a508aed2a
commit 8252cdea30
6 changed files with 168 additions and 65 deletions

View File

@@ -17,6 +17,8 @@
package com.android.mkstubs;
import com.android.mkstubs.Main.Logger;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
@@ -26,7 +28,7 @@ import org.objectweb.asm.ClassReader;
import java.io.StringWriter;
/**
*
*
*/
public class SourceGeneratorTest {
@@ -34,21 +36,21 @@ public class SourceGeneratorTest {
@Before
public void setUp() throws Exception {
mGen = new SourceGenerator();
mGen = new SourceGenerator(new Logger(false));
}
@After
public void tearDown() throws Exception {
}
@Test
public void testDumpClass() throws Exception {
StringWriter sw = new StringWriter();
ClassReader cr = new ClassReader("data/TestBaseClass");
mGen.visitClassSource(sw, cr, new Filter());
String s = sw.toString();
Assert.assertNotNull(s);
}