fix token

This commit is contained in:
hyb1996
2017-02-15 23:17:17 +08:00
parent 1463011b7b
commit 8993079151
6 changed files with 14 additions and 19 deletions

View File

@@ -1,11 +1,7 @@
package com.stardust.scriptdroid;
import android.os.Bundle;
import org.junit.Test;
import java.io.Serializable;
/**
* Example local unit test, which will execute on the development machine (host).
*
@@ -14,18 +10,8 @@ import java.io.Serializable;
public class ExampleUnitTest {
@Test
public void testSync() throws Exception {
Bundle bundle = new Bundle();
bundle.putSerializable("xxx", new XXX() {
@Override
void run() {
System.out.println("xxx");
}
});
((XXX) bundle.getSerializable("xxx")).run();
}
private static abstract class XXX implements Serializable {
abstract void run();
}
}