File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
main/java/org/opengrok/indexer/index
test/java/org/opengrok/indexer/history Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,9 @@ public static void main(String[] argv) {
171
171
172
172
disabledRepositories .addAll (cfg .getDisabledRepositories ());
173
173
cfg .setDisabledRepositories (disabledRepositories );
174
+ for (String repoName : disabledRepositories ) {
175
+ LOGGER .log (Level .FINEST , "Disabled {0}" , repoName );
176
+ }
174
177
175
178
env = RuntimeEnvironment .getInstance ();
176
179
Original file line number Diff line number Diff line change 34
34
import static org .junit .Assert .assertFalse ;
35
35
import static org .junit .Assert .assertNotNull ;
36
36
import static org .junit .Assert .assertNull ;
37
+ import static org .junit .Assert .assertTrue ;
37
38
38
39
import org .junit .After ;
39
40
import org .junit .AfterClass ;
@@ -164,4 +165,14 @@ public void testNotWorkingBitkeeperRepository()
164
165
IOException , ForbiddenSymlinkException {
165
166
testNotWorkingRepository ("bitkeeper" , BitKeeperRepository .CMD_PROPERTY_KEY );
166
167
}
168
+
169
+ @ Test
170
+ public void testRepositoryFactoryEveryImplIsNamedAsRepository () {
171
+ List <Class <? extends Repository >> repositoryClasses =
172
+ RepositoryFactory .getRepositoryClasses ();
173
+ for (Class <? extends Repository > clazz : repositoryClasses ) {
174
+ assertTrue ("should end with \" Repository\" " ,
175
+ clazz .getSimpleName ().endsWith ("Repository" ));
176
+ }
177
+ }
167
178
}
You can’t perform that action at this time.
0 commit comments