Permalink
Browse files

Rearrange source tree to follow maven conventions.

  • Loading branch information...
1 parent 6b3f265 commit 4ac725f9b4cebbf46805fc5e9b2f0eaf3fdd9b29 Christian Williams committed Dec 22, 2010
Showing with 113 additions and 92 deletions.
  1. +2 −2 build.properties
  2. +0 −2 pom.xml
  3. +9 −2 robolectric.iml
  4. 0 src/{ → main/java}/NOTICE
  5. 0 src/{ → main/java}/android/net/Uri__FromAndroid.java
  6. 0 src/{ → main/java}/android/os/ShadowAsyncTaskBridge.java
  7. 0 src/{ → main/java}/com/xtremelabs/robolectric/ApplicationResolver.java
  8. 0 src/{ → main/java}/com/xtremelabs/robolectric/Robolectric.java
  9. 0 src/{ → main/java}/com/xtremelabs/robolectric/RobolectricTestRunner.java
  10. 0 src/{ → main/java}/com/xtremelabs/robolectric/bytecode/AndroidTranslator.java
  11. 0 src/{ → main/java}/com/xtremelabs/robolectric/bytecode/ClassCache.java
  12. 0 src/{ → main/java}/com/xtremelabs/robolectric/bytecode/ClassHandler.java
  13. 0 src/{ → main/java}/com/xtremelabs/robolectric/bytecode/RobolectricClassLoader.java
  14. 0 src/{ → main/java}/com/xtremelabs/robolectric/bytecode/RobolectricInternals.java
  15. 0 src/{ → main/java}/com/xtremelabs/robolectric/bytecode/ShadowWrangler.java
  16. 0 src/{ → main/java}/com/xtremelabs/robolectric/bytecode/Type.java
  17. 0 src/{ → main/java}/com/xtremelabs/robolectric/content/TestSharedPreferences.java
  18. 0 src/{ → main/java}/com/xtremelabs/robolectric/internal/AppSingletonizer.java
  19. 0 src/{ → main/java}/com/xtremelabs/robolectric/internal/ClassNameResolver.java
  20. 0 src/{ → main/java}/com/xtremelabs/robolectric/internal/DoNotStrip.java
  21. 0 src/{ → main/java}/com/xtremelabs/robolectric/internal/EmptyRunnable.java
  22. 0 src/{ → main/java}/com/xtremelabs/robolectric/internal/Implementation.java
  23. 0 src/{ → main/java}/com/xtremelabs/robolectric/internal/Implements.java
  24. 0 src/{ → main/java}/com/xtremelabs/robolectric/internal/RealObject.java
  25. 0 src/{ → main/java}/com/xtremelabs/robolectric/internal/RobolectricTestRunnerInterface.java
  26. 0 src/{ → main/java}/com/xtremelabs/robolectric/internal/TestAttributeSet.java
  27. 0 src/{ → main/java}/com/xtremelabs/robolectric/matchers/CompoundButtonCheckedMatcher.java
  28. 0 src/{ → main/java}/com/xtremelabs/robolectric/matchers/HasCompoundDrawablesMatcher.java
  29. 0 src/{ → main/java}/com/xtremelabs/robolectric/matchers/HasResourceMatcher.java
  30. 0 src/{ → main/java}/com/xtremelabs/robolectric/matchers/ImageViewHasDrawableMatcher.java
  31. 0 src/{ → main/java}/com/xtremelabs/robolectric/matchers/StartedMatcher.java
  32. 0 src/{ → main/java}/com/xtremelabs/robolectric/matchers/TextViewHasTextMatcher.java
  33. 0 src/{ → main/java}/com/xtremelabs/robolectric/matchers/ViewHasTextMatcher.java
  34. 0 src/{ → main/java}/com/xtremelabs/robolectric/res/AttrResourceLoader.java
  35. 0 src/{ → main/java}/com/xtremelabs/robolectric/res/ColorResourceLoader.java
  36. 0 src/{ → main/java}/com/xtremelabs/robolectric/res/DocumentLoader.java
  37. 0 src/{ → main/java}/com/xtremelabs/robolectric/res/RawResourceLoader.java
  38. 0 src/{ → main/java}/com/xtremelabs/robolectric/res/ResourceExtractor.java
  39. 0 src/{ → main/java}/com/xtremelabs/robolectric/res/ResourceLoader.java
  40. 0 src/{ → main/java}/com/xtremelabs/robolectric/res/ResourceReferenceResolver.java
  41. 0 src/{ → main/java}/com/xtremelabs/robolectric/res/ResourceValueConverter.java
  42. 0 src/{ → main/java}/com/xtremelabs/robolectric/res/StringArrayResourceLoader.java
  43. 0 src/{ → main/java}/com/xtremelabs/robolectric/res/StringResourceLoader.java
  44. 0 src/{ → main/java}/com/xtremelabs/robolectric/res/ViewLoader.java
  45. 0 src/{ → main/java}/com/xtremelabs/robolectric/res/XmlLoader.java
  46. 0 src/{ → main/java}/com/xtremelabs/robolectric/res/XpathResourceXmlLoader.java
  47. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/FakeHttpLayer.java
  48. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/HttpEntityStub.java
  49. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/HttpResponseStub.java
  50. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowAbsSpinner.java
  51. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowAbsoluteLayout.java
  52. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowAbstractCursor.java
  53. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowActivity.java
  54. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowAdapterView.java
  55. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowAddress.java
  56. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowAlertDialog.java
  57. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowAppWidgetManager.java
  58. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowApplication.java
  59. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowArrayAdapter.java
  60. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowAssetManager.java
  61. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowAsyncTask.java
  62. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowAudioManager.java
  63. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowBaseAdapter.java
  64. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowBitmap.java
  65. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowBitmapDrawable.java
  66. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowBitmapFactory.java
  67. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowBluetoothAdapter.java
  68. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowBluetoothDevice.java
  69. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowBundle.java
  70. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowCamera.java
  71. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowCameraParameters.java
  72. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowCanvas.java
  73. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowColorMatrix.java
  74. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowColorMatrixColorFilter.java
  75. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowComponentName.java
  76. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowCompoundButton.java
  77. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowConnectivityManager.java
  78. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowContentResolver.java
  79. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowContentValues.java
  80. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowContext.java
  81. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowContextThemeWrapper.java
  82. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowContextWrapper.java
  83. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowDefaultRequestDirector.java
  84. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowDialog.java
  85. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowDisplay.java
  86. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowDrawable.java
  87. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowEditText.java
  88. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowExpandableListView.java
  89. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowFloatMath.java
  90. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowGeoPoint.java
  91. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowGeocoder.java
  92. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowHandler.java
  93. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowImageView.java
  94. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowIntent.java
  95. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowIntentFilter.java
  96. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowItemizedOverlay.java
  97. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowKeyEvent.java
  98. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowLayoutInflater.java
  99. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowLayoutParams.java
  100. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowListActivity.java
  101. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowListView.java
  102. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowLocation.java
  103. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowLocationManager.java
  104. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowLooper.java
  105. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowMapActivity.java
  106. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowMapController.java
  107. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowMapView.java
  108. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowMatrix.java
  109. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowMediaRecorder.java
  110. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowMediaStore.java
  111. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowMotionEvent.java
  112. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowNetworkInfo.java
  113. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowOverlayItem.java
  114. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowPaint.java
  115. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowPath.java
  116. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowPendingIntent.java
  117. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowPoint.java
  118. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowPointF.java
  119. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowPreferenceManager.java
  120. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowRect.java
  121. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowRemoteViews.java
  122. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowResources.java
  123. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowSQLiteCursor.java
  124. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowSQLiteDatabase.java
  125. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowSQLiteOpenHelper.java
  126. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowSQLiteQueryBuilder.java
  127. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowService.java
  128. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowSettings.java
  129. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowSpannableStringBuilder.java
  130. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowSurfaceView.java
  131. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowTextUtils.java
  132. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowTextView.java
  133. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowToast.java
  134. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowTypedValue.java
  135. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowURLSpan.java
  136. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowView.java
  137. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowViewGroup.java
  138. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowWebView.java
  139. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowWifiManager.java
  140. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/ShadowZoomButtonsController.java
  141. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/StatusLineStub.java
  142. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/TestHttpResponse.java
  143. 0 src/{ → main/java}/com/xtremelabs/robolectric/shadows/package.html
  144. 0 src/{ → main/java}/com/xtremelabs/robolectric/util/HttpRequestInfo.java
  145. 0 src/{ → main/java}/com/xtremelabs/robolectric/util/Join.java
  146. 0 src/{ → main/java}/com/xtremelabs/robolectric/util/RobolectricBackgroundExecutorService.java
  147. 0 src/{ → main/java}/com/xtremelabs/robolectric/util/SQLite.java
  148. 0 src/{ → main/java}/com/xtremelabs/robolectric/util/Scheduler.java
  149. 0 src/{ → main/java}/com/xtremelabs/robolectric/util/Strings.java
  150. 0 src/{ → main/java}/com/xtremelabs/robolectric/util/Transcript.java
  151. 0 src/{ → main/java}/com/xtremelabs/robolectric/view/TestMenu.java
  152. 0 src/{ → main/java}/com/xtremelabs/robolectric/view/TestMenuItem.java
  153. 0 src/{ → main/java}/com/xtremelabs/robolectric/view/TestWindow.java
  154. 0 src/{ → main/java}/com/xtremelabs/robolectric/view/TestWindowManager.java
  155. 0 src/{ → main/java}/overview.html
  156. 0 {test → src/test/java}/android/test/ClassWithNoDefaultConstructor.java
  157. +5 −7 {test → src/test/java}/com/xtremelabs/robolectric/ApplicationResolverTest.java
  158. 0 {test → src/test/java}/com/xtremelabs/robolectric/OrgJsonTest.java
  159. 0 {test → src/test/java}/com/xtremelabs/robolectric/R.java
  160. 0 {test → src/test/java}/com/xtremelabs/robolectric/RobolectricTest.java
  161. 0 {test → src/test/java}/com/xtremelabs/robolectric/RobolectricTestRunnerTest.java
  162. 0 {test → src/test/java}/com/xtremelabs/robolectric/TemporaryBindingsTest.java
  163. 0 {test → src/test/java}/com/xtremelabs/robolectric/TestApplication.java
  164. +12 −0 src/test/java/com/xtremelabs/robolectric/WithTestDefaultsRunner.java
  165. 0 {test → src/test/java}/com/xtremelabs/robolectric/WithoutTestDefaultsRunner.java
  166. 0 {test → src/test/java}/com/xtremelabs/robolectric/bytecode/AndroidTranslatorTest.java
  167. 0 {test → src/test/java}/com/xtremelabs/robolectric/bytecode/AndroidTranslatorUnitTest.java
  168. 0 {test → src/test/java}/com/xtremelabs/robolectric/bytecode/CustomRobolectricTestRunnerTest.java
  169. 0 {test → src/test/java}/com/xtremelabs/robolectric/bytecode/RobolectricWiringTest.java
  170. 0 {test → src/test/java}/com/xtremelabs/robolectric/bytecode/ShadowWranglerTest.java
  171. 0 {test → src/test/java}/com/xtremelabs/robolectric/content/TestSharedPreferencesTest.java
  172. 0 {test → src/test/java}/com/xtremelabs/robolectric/internal/ClassNameResolverTest.java
  173. 0 {test → src/test/java}/com/xtremelabs/robolectric/matchers/StartedMatcherTest.java
  174. +2 −3 {test → src/test/java}/com/xtremelabs/robolectric/res/AttrResourceLoaderTest.java
  175. +2 −3 {test → src/test/java}/com/xtremelabs/robolectric/res/ColorResourceLoaderTest.java
  176. +2 −1 {test → src/test/java}/com/xtremelabs/robolectric/res/RawResourceLoaderTest.java
  177. 0 {test → src/test/java}/com/xtremelabs/robolectric/res/ResourceLoaderTest.java
  178. +2 −1 {test → src/test/java}/com/xtremelabs/robolectric/res/StringArrayResourceLoaderTest.java
  179. +2 −3 {test → src/test/java}/com/xtremelabs/robolectric/res/StringResourceLoaderTest.java
  180. +2 −2 {test → src/test/java}/com/xtremelabs/robolectric/res/TestAttributeSetTest.java
  181. +3 −2 {test → src/test/java}/com/xtremelabs/robolectric/res/ViewLoaderTest.java
  182. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/AbsSpinnerTest.java
  183. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/AbstractCursorTest.java
  184. +2 −3 {test → src/test/java}/com/xtremelabs/robolectric/shadows/ActivityTest.java
  185. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/AdapterViewBehavior.java
  186. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/AlertDialogTest.java
  187. +2 −3 {test → src/test/java}/com/xtremelabs/robolectric/shadows/AppWidgetManagerTest.java
  188. +5 −4 {test → src/test/java}/com/xtremelabs/robolectric/shadows/ApplicationTest.java
  189. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/ArrayAdapterTest.java
  190. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/AssetManagerTest.java
  191. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/AsyncTaskTest.java
  192. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/AudioManagerTest.java
  193. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/BitmapDrawableTest.java
  194. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/BitmapFactoryTest.java
  195. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/BitmapTest.java
  196. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/BundleTest.java
  197. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/CameraParametersTest.java
  198. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/CameraTest.java
  199. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/CanvasTest.java
  200. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/CheckBoxTest.java
  201. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/ConnectivityManagerTest.java
  202. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/ContextWrapperTest.java
  203. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/CountingAdapter.java
  204. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/DefaultRequestDirectorTest.java
  205. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/DialogTest.java
  206. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/DisplayTest.java
  207. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/EditTextTest.java
  208. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/ExpandableListViewTest.java
  209. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/HandlerTest.java
  210. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/ImageViewTest.java
  211. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/IntentTest.java
  212. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/LayoutInflaterTest.java
  213. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/LayoutParamsTest.java
  214. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/ListViewTest.java
  215. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/LooperTest.java
  216. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/MapActivityTest.java
  217. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/MapViewTest.java
  218. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/MediaRecorderTest.java
  219. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/PreferenceManagerTest.java
  220. +2 −2 {test → src/test/java}/com/xtremelabs/robolectric/shadows/ResourcesTest.java
  221. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/SQLiteCursorTest.java
  222. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/SQLiteDatabaseTest.java
  223. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/SQLiteOpenHelperTest.java
  224. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/SQLiteQueryBuilderTest.java
  225. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/ServiceTest.java
  226. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/SettingsTest.java
  227. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/SpannableStringBuilderTest.java
  228. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/TextUtilsTest.java
  229. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/TextViewTest.java
  230. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/UriTest.java
  231. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/ViewGroupTest.java
  232. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/ViewInnerTextTest.java
  233. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/ViewTest.java
  234. 0 {test → src/test/java}/com/xtremelabs/robolectric/shadows/WebViewTest.java
  235. 0 {test → src/test/java}/com/xtremelabs/robolectric/util/CustomView.java
  236. 0 {test → src/test/java}/com/xtremelabs/robolectric/util/RobolectricBackgroundExecutorServiceTest.java
  237. 0 {test → src/test/java}/com/xtremelabs/robolectric/util/SQLiteTest.java
  238. 0 {test → src/test/java}/com/xtremelabs/robolectric/util/SchedulerTest.java
  239. 0 {test → src/test/java}/com/xtremelabs/robolectric/util/StringsTest.java
  240. 0 {test → src/test/java}/com/xtremelabs/robolectric/util/TestOnClickListener.java
  241. 0 {test → src/test/java}/com/xtremelabs/robolectric/util/TestRunnable.java
  242. +59 −0 src/test/java/com/xtremelabs/robolectric/util/TestUtil.java
  243. 0 {test → src/test/resources}/TestAndroidManifest.xml
  244. 0 {test → src/test/resources}/TestAndroidManifestWithAppName.xml
  245. 0 {test → src/test/resources}/TestAndroidManifestWithBadAppName.xml
  246. 0 {test → src/test/resources}/TestAndroidManifestWithPackageName.xml
  247. 0 {test → src/test/resources}/res/layout/.bogus_hidden_dir_for_tests/bad.xml
  248. 0 {test → src/test/resources}/res/layout/custom_layout.xml
  249. 0 {test → src/test/resources}/res/layout/inner_merge.xml
  250. 0 {test → src/test/resources}/res/layout/main.xml
  251. 0 {test → src/test/resources}/res/layout/mapview.xml
  252. 0 {test → src/test/resources}/res/layout/media.xml
  253. 0 {test → src/test/resources}/res/layout/outer.xml
  254. 0 {test → src/test/resources}/res/layout/override_include.xml
  255. 0 {test → src/test/resources}/res/layout/request_focus.xml
  256. 0 {test → src/test/resources}/res/layout/request_focus_with_two_edit_texts.xml
  257. 0 {test → src/test/resources}/res/layout/snippet.xml
  258. 0 {test → src/test/resources}/res/layout/webview_holder.xml
  259. 0 {test → src/test/resources}/res/raw/raw_no_ext
  260. 0 {test → src/test/resources}/res/raw/raw_resource.txt
  261. 0 {test → src/test/resources}/res/values/attrs.xml
  262. 0 {test → src/test/resources}/res/values/colors.xml
  263. 0 {test → src/test/resources}/res/values/string_arrays.xml
  264. 0 {test → src/test/resources}/res/values/strings.xml
  265. +0 −26 test/com/xtremelabs/robolectric/WithTestDefaultsRunner.java
  266. +0 −26 test/com/xtremelabs/robolectric/util/TestUtil.java
View
@@ -9,8 +9,8 @@
# 'source.dir' for the location of your java source folder and
# 'out.dir' for the location of your output folder.
-main.dir=src
-test.dir=test
+main.dir=src/main/java
+test.dir=src/test/java
tmp.dir=tmp
target.dir=target
View
@@ -97,8 +97,6 @@
</dependencies>
<build>
- <testSourceDirectory>test</testSourceDirectory>
- <sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
View
@@ -4,11 +4,18 @@
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
- <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
+ <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
+ <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
+ <sourceFolder url="file://$MODULE_DIR$/target/generated-sources/test-annotations" isTestSource="true" />
+ <sourceFolder url="file://$MODULE_DIR$/target/generated-sources/annotations" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/bin" />
<excludeFolder url="file://$MODULE_DIR$/out" />
- <excludeFolder url="file://$MODULE_DIR$/target" />
+ <excludeFolder url="file://$MODULE_DIR$/target/archive-tmp" />
+ <excludeFolder url="file://$MODULE_DIR$/target/classes" />
+ <excludeFolder url="file://$MODULE_DIR$/target/maven-archiver" />
+ <excludeFolder url="file://$MODULE_DIR$/target/surefire-reports" />
+ <excludeFolder url="file://$MODULE_DIR$/target/test-classes" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
File renamed without changes.
File renamed without changes.
@@ -4,34 +4,32 @@
import org.junit.Test;
import org.junit.runner.RunWith;
-import java.io.File;
-
-import static java.io.File.separator;
+import static com.xtremelabs.robolectric.util.TestUtil.resourceFile;
import static org.junit.Assert.assertEquals;
@RunWith(WithTestDefaultsRunner.class)
public class ApplicationResolverTest {
@Test(expected = RuntimeException.class)
public void shouldThrowWhenManifestContainsBadApplicationClassName() throws Exception {
- new ApplicationResolver(new File("test" + separator + "TestAndroidManifestWithBadAppName.xml")).resolveApplication();
+ new ApplicationResolver(resourceFile("TestAndroidManifestWithBadAppName.xml")).resolveApplication();
}
@Test
public void shouldReturnDefaultAndroidApplicationWhenManifestDeclaresNoAppName() throws Exception {
assertEquals(Application.class,
- new ApplicationResolver(new File("test" + separator + "TestAndroidManifest.xml")).resolveApplication().getClass());
+ new ApplicationResolver(resourceFile("TestAndroidManifest.xml")).resolveApplication().getClass());
}
@Test
public void shouldReturnSpecifiedApplicationWhenManifestDeclaresAppName() throws Exception {
assertEquals(TestApplication.class,
- new ApplicationResolver(new File("test" + separator + "TestAndroidManifestWithAppName.xml")).resolveApplication().getClass());
+ new ApplicationResolver(resourceFile("TestAndroidManifestWithAppName.xml")).resolveApplication().getClass());
}
@Test
public void shouldAssignThePackageNameFromTheManifest() throws Exception {
- Application application = new ApplicationResolver(new File("test" + separator + "TestAndroidManifestWithPackageName.xml")).resolveApplication();
+ Application application = new ApplicationResolver(resourceFile("TestAndroidManifestWithPackageName.xml")).resolveApplication();
assertEquals("com.wacka.wa", application.getPackageName());
}
}
@@ -0,0 +1,12 @@
+package com.xtremelabs.robolectric;
+
+import org.junit.runners.model.InitializationError;
+
+import static com.xtremelabs.robolectric.util.TestUtil.resourceFile;
+
+public class WithTestDefaultsRunner extends RobolectricTestRunner {
+
+ public WithTestDefaultsRunner(Class testClass) throws InitializationError {
+ super(testClass, resourceFile("TestAndroidManifest.xml"), resourceFile("res"));
+ }
+}
@@ -7,8 +7,7 @@
import org.junit.Before;
import org.junit.Test;
-import java.io.File;
-
+import static com.xtremelabs.robolectric.util.TestUtil.resourceFile;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
@@ -20,7 +19,7 @@ public void setUp() throws Exception {
ResourceExtractor resourceExtractor = new ResourceExtractor();
resourceExtractor.addRClass(R.class);
attrResourceLoader = new AttrResourceLoader(resourceExtractor);
- new DocumentLoader(attrResourceLoader).loadResourceXmlDir(new File("test/res/values"));
+ new DocumentLoader(attrResourceLoader).loadResourceXmlDir(resourceFile("res", "values"));
}
@Test
@@ -5,8 +5,7 @@
import org.junit.Before;
import org.junit.Test;
-import java.io.File;
-
+import static com.xtremelabs.robolectric.util.TestUtil.resourceFile;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
@@ -17,7 +16,7 @@
ResourceExtractor resourceExtractor = new ResourceExtractor();
resourceExtractor.addRClass(R.class);
colorResourceLoader = new ColorResourceLoader(resourceExtractor);
- new DocumentLoader(colorResourceLoader).loadResourceXmlDir(new File("test/res/values"));
+ new DocumentLoader(colorResourceLoader).loadResourceXmlDir(resourceFile("res", "values"));
}
@Test
@@ -8,6 +8,7 @@
import java.io.*;
+import static com.xtremelabs.robolectric.util.TestUtil.resourceFile;
import static org.junit.Assert.assertEquals;
@RunWith(WithTestDefaultsRunner.class)
@@ -18,7 +19,7 @@
@Before public void setUp() throws Exception {
ResourceExtractor resourceExtractor = new ResourceExtractor();
resourceExtractor.addRClass(R.class);
- rawResourceLoader = new RawResourceLoader(resourceExtractor, new File("test/res"));
+ rawResourceLoader = new RawResourceLoader(resourceExtractor, resourceFile("res"));
}
@Test
@@ -7,6 +7,7 @@
import java.io.File;
import java.util.Arrays;
+import static com.xtremelabs.robolectric.util.TestUtil.resourceFile;
import static org.hamcrest.core.IsCollectionContaining.hasItems;
import static org.junit.Assert.assertThat;
@@ -17,7 +18,7 @@
ResourceExtractor resourceExtractor = new ResourceExtractor();
resourceExtractor.addRClass(R.class);
StringResourceLoader stringResourceLoader = new StringResourceLoader(resourceExtractor);
- File resourceXmlDir = new File("test/res/values");
+ File resourceXmlDir = resourceFile("res", "values");
new DocumentLoader(stringResourceLoader).loadResourceXmlDir(resourceXmlDir);
stringArrayResourceLoader = new StringArrayResourceLoader(resourceExtractor, stringResourceLoader);
new DocumentLoader(stringArrayResourceLoader).loadResourceXmlDir(resourceXmlDir);
@@ -4,8 +4,7 @@
import org.junit.Before;
import org.junit.Test;
-import java.io.File;
-
+import static com.xtremelabs.robolectric.util.TestUtil.resourceFile;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
@@ -16,7 +15,7 @@
ResourceExtractor resourceExtractor = new ResourceExtractor();
resourceExtractor.addRClass(R.class);
stringResourceLoader = new StringResourceLoader(resourceExtractor);
- new DocumentLoader(stringResourceLoader).loadResourceXmlDir(new File("test/res/values"));
+ new DocumentLoader(stringResourceLoader).loadResourceXmlDir(resourceFile("res", "values"));
}
@Test
@@ -9,9 +9,9 @@
import org.junit.Test;
import org.junit.runner.RunWith;
-import java.io.File;
import java.util.HashMap;
+import static com.xtremelabs.robolectric.util.TestUtil.resourceFile;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
@@ -93,7 +93,7 @@ public void getAttributeIntValue_shouldReturnEnumValuesForEnumAttributes() throw
attributes.put("itemType", "string");
AttrResourceLoader attrResourceLoader = new AttrResourceLoader(resourceExtractor);
- new DocumentLoader(attrResourceLoader).loadResourceXmlDir(new File("test/res/values"));
+ new DocumentLoader(attrResourceLoader).loadResourceXmlDir(resourceFile("res", "values"));
TestAttributeSet testAttributeSet = new TestAttributeSet(attributes, null, attrResourceLoader, CustomView.class);
assertThat(testAttributeSet.getAttributeIntValue("some namespace", "itemType", 0), equalTo(1));
}
@@ -28,6 +28,7 @@
import static android.test.MoreAsserts.assertNotEqual;
import static com.xtremelabs.robolectric.Robolectric.shadowOf;
import static com.xtremelabs.robolectric.util.TestUtil.assertInstanceOf;
+import static com.xtremelabs.robolectric.util.TestUtil.resourceFile;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.*;
@@ -44,9 +45,9 @@ public void setUp() throws Exception {
ResourceExtractor resourceExtractor = new ResourceExtractor();
resourceExtractor.addRClass(R.class);
StringResourceLoader stringResourceLoader = new StringResourceLoader(resourceExtractor);
- new DocumentLoader(stringResourceLoader).loadResourceXmlDir(new File("test/res/values"));
+ new DocumentLoader(stringResourceLoader).loadResourceXmlDir(resourceFile("res", "values"));
viewLoader = new ViewLoader(resourceExtractor, new AttrResourceLoader(resourceExtractor));
- new DocumentLoader(viewLoader).loadResourceXmlDir(new File("test/res/layout"));
+ new DocumentLoader(viewLoader).loadResourceXmlDir(resourceFile("res", "layout"));
context = new Activity();
}
@@ -13,9 +13,8 @@
import org.junit.Test;
import org.junit.runner.RunWith;
-import java.io.File;
-
import static com.xtremelabs.robolectric.Robolectric.shadowOf;
+import static com.xtremelabs.robolectric.util.TestUtil.resourceFile;
import static org.hamcrest.core.StringStartsWith.startsWith;
import static org.junit.Assert.*;
@@ -77,7 +76,7 @@ public void startActivityForResultAndReceiveResult_whenNoIntentMatches_shouldThr
@Test
public void shouldRetrievePackageNameFromTheManifest() throws Exception {
- Robolectric.application = new ApplicationResolver(new File("test", "TestAndroidManifestWithPackageName.xml")).resolveApplication();
+ Robolectric.application = new ApplicationResolver(resourceFile("TestAndroidManifestWithPackageName.xml")).resolveApplication();
assertEquals("com.wacka.wa", new Activity().getPackageName());
}
@@ -16,9 +16,8 @@
import org.junit.Test;
import org.junit.runner.RunWith;
-import java.io.File;
-
import static com.xtremelabs.robolectric.Robolectric.shadowOf;
+import static com.xtremelabs.robolectric.util.TestUtil.resourceFile;
import static org.junit.Assert.*;
@RunWith(WithTestDefaultsRunner.class)
@@ -29,7 +28,7 @@
@Before
public void setUp() throws Exception {
Robolectric.bindDefaultShadowClasses();
- Robolectric.application = ShadowApplication.bind(new Application(), new ResourceLoader(R.class, new File("test/res")));
+ Robolectric.application = ShadowApplication.bind(new Application(), new ResourceLoader(R.class, resourceFile("res")));
appWidgetManager = AppWidgetManager.getInstance(Robolectric.application);
shadowAppWidgetManager = shadowOf(appWidgetManager);
}
@@ -20,10 +20,11 @@
import org.junit.Test;
import org.junit.runner.RunWith;
-import java.io.File;
-
+import static com.xtremelabs.robolectric.util.TestUtil.resourceFile;
import static org.hamcrest.CoreMatchers.sameInstance;
-import static org.junit.Assert.*;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertThat;
+import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
@@ -78,7 +79,7 @@ public void shouldProvideServices() throws Exception {
@Test
public void packageManager_shouldKnowPackageName() throws Exception {
- Application application = new ApplicationResolver(new File("test", "TestAndroidManifestWithPackageName.xml")).resolveApplication();
+ Application application = new ApplicationResolver(resourceFile("TestAndroidManifestWithPackageName.xml")).resolveApplication();
assertEquals("com.wacka.wa", application.getPackageManager().getPackageInfo(null, 0).packageName);
}
}
@@ -10,14 +10,14 @@
import org.junit.Test;
import org.junit.runner.RunWith;
-import java.io.File;
+import static com.xtremelabs.robolectric.util.TestUtil.resourceFile;
@RunWith(WithTestDefaultsRunner.class)
public class ResourcesTest {
@Test(expected = Resources.NotFoundException.class)
public void getStringArray_shouldThrowExceptionIfNotFound() throws Exception {
Robolectric.bindDefaultShadowClasses();
- Robolectric.application = ShadowApplication.bind(new Application(), new ResourceLoader(R.class, new File("test/res")));
+ Robolectric.application = ShadowApplication.bind(new Application(), new ResourceLoader(R.class, resourceFile("res")));
new Activity().getResources().getStringArray(-1);
}
View