Skip to content

Instantly share code, notes, and snippets.

@yshrsmz
Created April 21, 2017 02:54
Show Gist options
  • Save yshrsmz/97e8585e5150a790f226a1f5560c5401 to your computer and use it in GitHub Desktop.
Save yshrsmz/97e8585e5150a790f226a1f5560c5401 to your computer and use it in GitHub Desktop.
java.lang.AssertionError: Compilation produced the following errors:
/SOURCE_OUTPUT/tiamat/compiler/NoTableNameSharedPreferences.java:7: エラー: シンボルを見つけられません
import tiamat.Preference;
^
シンボル: クラス Preference
場所: パッケージ tiamat
/SOURCE_OUTPUT/tiamat/compiler/NoTableNameSharedPreferences.java:8: エラー: シンボルを見つけられません
import tiamat.RxSharedPreferences;
^
シンボル: クラス RxSharedPreferences
場所: パッケージ tiamat
/SOURCE_OUTPUT/tiamat/compiler/NoTableNameSharedPreferences.java:10: エラー: シンボルを見つけられません
public final class NoTableNameSharedPreferences extends RxSharedPreferences {
^
シンボル: クラス RxSharedPreferences
/SOURCE_OUTPUT/tiamat/compiler/NoTableNameSharedPreferences.java:21: エラー: シンボルを見つけられません
public Preference<Long> getUserId() {
^
シンボル: クラス Preference
場所: クラス tiamat.compiler.NoTableNameSharedPreferences
Generated Source Files
======================
/SOURCE_OUTPUT/tiamat/compiler/NoTableNameSharedPreferences.java:
package tiamat.compiler;
import android.content.Context;
import android.content.SharedPreferences;
import java.lang.Long;
import java.lang.String;
import tiamat.Preference;
import tiamat.RxSharedPreferences;
public final class NoTableNameSharedPreferences extends RxSharedPreferences {
private static final String TABLE_NAME = "no_table_name";
public NoTableNameSharedPreferences(Context context) {
super(context, TABLE_NAME);
}
public NoTableNameSharedPreferences(SharedPreferences preferences) {
super(preferences);
}
public Preference<Long> getUserId() {
return getLong("user_id", 0L);
}
public void setUserId(long userId) {
putLong("user_id", userId);
}
public boolean hasUserId() {
return contains("user_id");
}
public void removeUserId() {
remove("user_id");
}
}
at com.google.testing.compile.CompilationSubject.succeeded(CompilationSubject.java:70)
at com.google.testing.compile.JavaSourcesSubject$CompilationClause.compilesWithoutError(JavaSourcesSubject.java:256)
at tiamat.compiler.PrefsProcessorTest.tableNameNotDefined(PrefsProcessorTest.java:26)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.rules.ExpectedException$ExpectedExceptionStatement.evaluate(ExpectedException.java:239)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:114)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:57)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:66)
at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
at com.sun.proxy.$Proxy3.processTestClass(Unknown Source)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:109)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:377)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.AssertionError: Compilation produced the following errors:
/SOURCE_OUTPUT/tiamat/compiler/NoTableNameSharedPreferences.java:7: エラー: シンボルを見つけられません
import tiamat.Preference;
^
シンボル: クラス Preference
場所: パッケージ tiamat
/SOURCE_OUTPUT/tiamat/compiler/NoTableNameSharedPreferences.java:8: エラー: シンボルを見つけられません
import tiamat.RxSharedPreferences;
^
シンボル: クラス RxSharedPreferences
場所: パッケージ tiamat
/SOURCE_OUTPUT/tiamat/compiler/NoTableNameSharedPreferences.java:10: エラー: シンボルを見つけられません
public final class NoTableNameSharedPreferences extends RxSharedPreferences {
^
シンボル: クラス RxSharedPreferences
/SOURCE_OUTPUT/tiamat/compiler/NoTableNameSharedPreferences.java:21: エラー: シンボルを見つけられません
public Preference<Long> getUserId() {
^
シンボル: クラス Preference
場所: クラス tiamat.compiler.NoTableNameSharedPreferences
Generated Source Files
======================
/SOURCE_OUTPUT/tiamat/compiler/NoTableNameSharedPreferences.java:
package tiamat.compiler;
import android.content.Context;
import android.content.SharedPreferences;
import java.lang.Long;
import java.lang.String;
import tiamat.Preference;
import tiamat.RxSharedPreferences;
public final class NoTableNameSharedPreferences extends RxSharedPreferences {
private static final String TABLE_NAME = "no_table_name";
public NoTableNameSharedPreferences(Context context) {
super(context, TABLE_NAME);
}
public NoTableNameSharedPreferences(SharedPreferences preferences) {
super(preferences);
}
public Preference<Long> getUserId() {
return getLong("user_id", 0L);
}
public void setUserId(long userId) {
putLong("user_id", userId);
}
public boolean hasUserId() {
return contains("user_id");
}
public void removeUserId() {
remove("user_id");
}
}
at com.google.common.truth.FailureStrategy.fail(FailureStrategy.java:28)
at com.google.common.truth.FailureStrategy.fail(FailureStrategy.java:22)
... 48 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment