perlow/robolectric — pull request #1 by technicalcycling (2012-08-17 23:07:03+00:00)
Title: Update javassist to 3.16 to make unit tests pass for everyone

Summary:
Used to get exceptions like the ones below, because we couldn't allocate more than a certain amount in javassist.
https://issues.jboss.org/browse/JASSIST-142

I have no idea why this was failing for 25-40% of people and not the rest.

null
java.lang.NullPointerException
at org.sqlite.NestedDB$CausedSQLException.fillInStackTrace(NestedDB.java:649)
at java.lang.Throwable.(Throwable.java:250)
at java.lang.Exception.(Exception.java:54)
at java.sql.SQLException.(SQLException.java:140)
at org.sqlite.NestedDB$CausedSQLException.(NestedDB.java:626)
at org.sqlite.NestedDB._open(NestedDB.java:63)
at org.sqlite.DB.open(DB.java:86)
at org.sqlite.Conn.open(Conn.java:140)
at org.sqlite.Conn.(Conn.java:57)
at org.sqlite.JDBC.createConnection(JDBC.java:77)
at org.sqlite.JDBC.connect(JDBC.java:64)
at java.sql.DriverManager.getConnection(DriverManager.java:579)
at java.sql.DriverManager.getConnection(DriverManager.java:243)
at com.xtremelabs.robolectric.util.DatabaseConfig.getMemoryConnection(DatabaseConfig.java:69)
at com.xtremelabs.robolectric.shadows.ShadowSQLiteDatabase.openDatabase(ShadowSQLiteDatabase.java:179)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java)
at com.xtremelabs.robolectric.shadows.ShadowSQLiteOpenHelper.getWritableDatabase(ShadowSQLiteOpenHelper.java:50)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java)
at com.facebook.orca.prefs.OrcaSharedPreferencesContentProvider.initializePrefsDatabase(OrcaSharedPreferencesContentProvider.java:393)
at com.facebook.orca.prefs.OrcaSharedPreferencesContentProvider.ensurePrefsDatabase(OrcaSharedPreferencesContentProvider.java:382)
at com.facebook.orca.prefs.OrcaSharedPreferencesContentProvider.ensureInitialized(OrcaSharedPreferencesContentProvider.java:282)
at com.facebook.orca.prefs.OrcaSharedPreferencesContentProvider.insert(OrcaSharedPreferencesContentProvider.java:149)
at com.facebook.orca.prefs.OrcaSharedPreferencesImplTest.setUp(OrcaSharedPreferencesImplTest.java:93)
at com.xtremelabs.robolectric.RobolectricTestRunner$1.evaluate(RobolectricTestRunner.java:292)

Test Plan:
Built robolectric

Reviewers:
jperlow

CC: