|
42 | 42 |
|
43 | 43 | public class SharedPrefsApiDependenciesTest extends AAProcessorTestHelper { |
44 | 44 |
|
45 | | - private static final Class<?>[] SHARED_PREF_API_DEPENDENCIES = new Class<?>[] { AbstractPrefEditorField.class,// |
46 | | - AbstractPrefField.class,// |
47 | | - BooleanPrefEditorField.class,// |
48 | | - BooleanPrefField.class,// |
49 | | - EditorHelper.class,// |
50 | | - FloatPrefEditorField.class,// |
51 | | - FloatPrefField.class,// |
52 | | - IntPrefEditorField.class,// |
53 | | - IntPrefField.class,// |
54 | | - LongPrefEditorField.class,// |
55 | | - LongPrefField.class,// |
56 | | - SharedPreferencesCompat.class,// |
57 | | - SharedPreferencesHelper.class,// |
58 | | - StringPrefEditorField.class,// |
59 | | - StringPrefField.class, // |
60 | | - StringSetPrefEditorField.class,// |
61 | | - StringSetPrefField.class // |
| 45 | + private static final Class<?>[] SHARED_PREF_API_DEPENDENCIES = new Class<?>[] { AbstractPrefEditorField.class, // |
| 46 | + AbstractPrefField.class, // |
| 47 | + BooleanPrefEditorField.class, // |
| 48 | + BooleanPrefField.class, // |
| 49 | + EditorHelper.class, // |
| 50 | + FloatPrefEditorField.class, // |
| 51 | + FloatPrefField.class, // |
| 52 | + IntPrefEditorField.class, // |
| 53 | + IntPrefField.class, // |
| 54 | + LongPrefEditorField.class, // |
| 55 | + LongPrefField.class, // |
| 56 | + SharedPreferencesCompat.class, // |
| 57 | + SharedPreferencesHelper.class, // |
| 58 | + StringPrefEditorField.class, // |
| 59 | + StringPrefField.class, // |
| 60 | + StringSetPrefEditorField.class, // |
| 61 | + StringSetPrefField.class, // |
62 | 62 | }; |
63 | 63 |
|
64 | 64 | @Before |
65 | | - public void setup() { |
| 65 | + public void setUp() { |
66 | 66 | addManifestProcessorParameter(SharedPrefsApiDependenciesTest.class); |
67 | 67 | addProcessor(AndroidAnnotationProcessor.class); |
68 | 68 | ensureOutputDirectoryIsEmpty(); |
69 | 69 | } |
70 | 70 |
|
71 | 71 | @Test |
72 | | - public void class_with_prefs_do_not_generate_api_dependencies() throws IOException { |
| 72 | + public void classWithPrefsDoesNotGenerateApiDependencies() throws IOException { |
73 | 73 | compileFiles(SharedPrefs.class); |
74 | 74 | for (Class<?> apiDependency : SHARED_PREF_API_DEPENDENCIES) { |
75 | 75 | assertClassSourcesNotGeneratedToOutput(apiDependency); |
76 | 76 | } |
77 | 77 | } |
78 | 78 |
|
79 | 79 | @Test |
80 | | - public void class_without_prefs_do_not_generate_api_dependencies() throws IOException { |
| 80 | + public void classWithoutPrefsDoesNotGenerateApiDependencies() throws IOException { |
81 | 81 | compileFiles(SomeClass.class); |
82 | 82 | for (Class<?> apiDependency : SHARED_PREF_API_DEPENDENCIES) { |
83 | 83 | assertClassSourcesNotGeneratedToOutput(apiDependency); |
|
0 commit comments