GAE/JでJUnitを使おう

主に失敗した事を列挙してます。

使いたいクラスが存在しない

以下のjarファイルをEclipseのビルドパスに追加する。

・appengine-api-stubs.jar
・appengine-local-runtime.jar


こいつらはGAE/Jを開発する時に入れた(と思われる)Eclipseプラグインの中にある。
ファイルパスは以下の通り。

"${ECLIPSE_HOME}/plugins/com.google.appengine.eclipse.sdkbundle_1.2.0.v200904062334/appengine-java-sdk-1.2.0/lib/impl"

404 shin1のつぶやき ないわー Not Found: GAE/Jの単体テスト

こんな例外がでるぞゴルァ!

org.datanucleus.jdo.exceptions.ClassNotPersistenceCapableException: The class "The class "TestData" is not persistable. This means that it either hasnt been enhanced, or that the enhanced version of the file is not in the CLASSPATH (or is hidden by an unenhanced version), or the Meta-Data/annotations for the class are not found." is not persistable. This means that it either hasnt been enhanced, or that the enhanced version of the file is not in the CLASSPATH (or is hidden by an unenhanced version), or the Meta-Data for the class is not found.

classをpackageに所属させろ

org.datanucleus.jdo.exceptions.ClassNotPersistenceCapableException

スーパークラスがJDOのアノテーションを付けていると発生するようです