fix token
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user