Searched refs:instance (Results 1 - 25 of 27) sorted by relevance

12

/opengrok-jel/test/org/opensolaris/opengrok/history/
H A DAnnotationTest.java64 Annotation instance = new Annotation("testfile.tst");
65 assertEquals(instance.getRevision(1), "");
66 instance.addLine("1.0", "Author");
67 assertEquals(instance.getRevision(1), "1.0");
68 instance.addLine("1.1.0", "Author 2");
69 assertEquals(instance.getRevision(2), "1.1.0");
77 Annotation instance = new Annotation("testfile.tst");
78 assertEquals(instance.getAuthor(1), "");
79 instance.addLine("1.0", "Author");
80 assertEquals(instance
[all...]
H A DHistoryEntryTest.java44 private HistoryEntry instance; field in class:HistoryEntryTest
63 instance = new HistoryEntry(historyRevision, null, historyDate, historyAuthor, historyMessage, true);
75 assertTrue(instance.getLine().contains(historyRevision));
76 assertTrue(instance.getLine().contains(historyAuthor));
84 instance.dump();
85 instance.setActive(false);
86 instance.addFile("testFile1.txt");
87 instance.addFile("testFile2.txt");
88 instance.addChangeRequest("CR1");
89 instance
[all...]
H A DPerforceRepositoryTest.java72 PerforceRepository instance = new PerforceRepository();
73 instance.setDirectoryName(root.getAbsolutePath());
74 instance.update();
83 PerforceRepository instance = new PerforceRepository();
84 instance.setDirectoryName(root.getAbsolutePath());
87 if (instance.fileHasHistory(f)) {
88 History history = instance.getHistory(f);
93 InputStream in = instance.getHistoryGet(
98 if (instance.fileHasAnnotation(f)) {
101 instance
[all...]
H A DHistoryGuruTest.java76 HistoryGuru instance = HistoryGuru.getInstance();
77 instance.addRepositories(repository.getSourceRoot());
83 HistoryGuru instance = HistoryGuru.getInstance();
84 instance.createCache();
92 instance.createCache(repos);
98 HistoryGuru instance = HistoryGuru.getInstance();
99 instance.updateRepositories();
105 HistoryGuru instance = HistoryGuru.getInstance();
107 if (f.isFile() && instance.hasHistory(f)) {
109 instance
[all...]
H A DGitRepositoryTest.java43 GitRepository instance; field in class:GitRepositoryTest
48 instance = new GitRepository();
54 instance = null;
74 Method method = instance.getClass()
77 Annotation result = (Annotation) method.invoke(instance, input, fileName);
96 boolean result = instance.fileHasAnnotation(null);
105 boolean result = instance.fileHasHistory(null);
H A DBazaarRepositoryTest.java41 BazaarRepository instance; field in class:BazaarRepositoryTest
56 instance = new BazaarRepository();
61 instance = null;
81 Annotation result = instance.parseAnnotation(input, fileName);
100 boolean result = instance.fileHasAnnotation(null);
109 boolean result = instance.fileHasHistory(null);
H A DCVSRepositoryTest.java41 CVSRepository instance; field in class:CVSRepositoryTest
56 instance = new CVSRepository();
61 instance = null;
69 boolean result = instance.fileHasAnnotation(null);
78 boolean result = instance.fileHasHistory(null);
98 Annotation result = instance.parseAnnotation(input, fileName);
H A DCVSHistoryParserTest.java39 CVSHistoryParser instance; field in class:CVSHistoryParserTest
54 instance = new CVSHistoryParser();
59 instance = null;
67 History result = instance.parse("");
111 History result = instance.parse(output);
H A DClearCaseHistoryParserTest.java39 private ClearCaseHistoryParser instance; field in class:ClearCaseHistoryParserTest
54 instance = new ClearCaseHistoryParser();
59 instance = null;
109 History result = instance.parse(output);
173 History result = instance.parse(output);
H A DRazorHistoryParserTest.java44 RazorHistoryParser instance; field in class:RazorHistoryParserTest
59 instance = new RazorHistoryParser();
64 instance = null;
73 History result = instance.parseContents(new BufferedReader(new StringReader(output)));
111 History result = instance.parseContents(new BufferedReader(new StringReader(output)));
H A DSCCSRepositoryTest.java69 SCCSRepository instance = new SCCSRepository();
70 assertTrue(instance.isRepositoryFor(tdir));
H A DSubversionHistoryParserTest.java39 private SubversionHistoryParser instance; field in class:SubversionHistoryParserTest
54 instance = new SubversionHistoryParser();
59 instance = null;
67 History result = instance.parse("");
132 History result = instance.parse(output);
H A DBazaarHistoryParserTest.java44 private BazaarHistoryParser instance; field in class:BazaarHistoryParserTest
52 instance = new BazaarHistoryParser(new BazaarRepository());
58 instance = null;
67 History result = instance.parse("");
121 History result = instance.parse(output);
175 History result = instance.parse(output.toString());
/opengrok-jel/test/org/opensolaris/opengrok/analysis/
H A DDefinitionsTest.java65 Definitions instance = new Definitions();
66 Set<String> result = instance.getSymbols();
69 instance.addTag(1, "found", "", "");
70 result = instance.getSymbols();
80 Definitions instance = new Definitions();
81 instance.addTag(1, "found", "", "");
82 assertEquals(instance.hasSymbol("notFound"), false);
83 assertEquals(instance.hasSymbol("found"), true);
91 Definitions instance = new Definitions();
94 instance
[all...]
H A DList2TokenStreamTest.java67 List2TokenStream instance = new List2TokenStream(empty);
68 assertNotNull(instance);
69 assertFalse(instance.incrementToken());
70 instance.close();
/opengrok-jel/test/org/opensolaris/opengrok/util/
H A DGetoptTest.java61 Getopt instance = new Getopt(argv, "a:bcr:f");
63 instance.parse();
65 assertEquals('a', (char) instance.getOpt());
66 assertEquals("foo", instance.getOptarg());
67 assertEquals('b', (char) instance.getOpt());
68 assertNull(instance.getOptarg());
69 assertEquals('c', (char) instance.getOpt());
70 assertNull(instance.getOptarg());
71 assertEquals(-1, instance.getOpt());
72 assertEquals(4, instance
[all...]
H A DExecutorTest.java68 Executor instance = new Executor(cmdList);
69 assertEquals(0, instance.exec());
70 assertTrue(instance.getOutputString().startsWith("testing org.opensolaris.opengrok.util.Executor"));
71 String err = instance.getErrorString();
80 Executor instance = new Executor(cmdList);
81 assertEquals(0, instance.exec());
82 BufferedReader in = new BufferedReader(instance.getOutputReader());
85 in = new BufferedReader(instance.getErrorReader());
95 Executor instance = new Executor(cmdList, new File("."));
96 assertEquals(0, instance
[all...]
/opengrok-jel/test/org/opensolaris/opengrok/index/
H A DIgnoredNamesTest.java46 IgnoredNames instance = new IgnoredNames();
48 LinkedHashSet<String> names = instance.getItems();
53 assertTrue(instance.match(name));
57 assertFalse(instance.match("usr/src/foo/bin"));
58 assertFalse(instance.match("usr/src/foo/bin/bar.ksh"));
59 assertFalse(instance.match("usr/src/bar/obj"));
60 assertFalse(instance.match("usr/src/bar/obj/foo.ksh"));
61 assertFalse(instance.match("usr/src/foo/bar/usr.lib/main.c"));
62 assertFalse(instance.match("usr/src/foo/bar/usr.lib"));
68 instance
[all...]
H A DCommandLineOptionsTest.java66 CommandLineOptions instance = new CommandLineOptions();
67 String cmdString = instance.getCommandString();
74 assertNotNull(instance.getCommandUsage(c));
79 Iterator<CommandLineOptions.Option> iter = instance.getOptionsIterator();
85 assertNotNull(instance.getUsage());
86 assertNotNull(instance.getManPage());
91 CommandLineOptions instance = new CommandLineOptions();
92 String cmdString = instance.getCommandString();
95 assertEquals("-?\n\tHelp", instance.getCommandUsage('?'));
100 CommandLineOptions instance
[all...]
/opengrok-jel/test/org/opensolaris/opengrok/search/
H A DSearchEngineTest.java95 SearchEngine instance = new SearchEngine();
96 assertFalse(instance.isValidQuery());
97 instance.setFile("foo");
98 assertTrue(instance.isValidQuery());
104 SearchEngine instance = new SearchEngine();
105 assertNull(instance.getDefinition());
107 instance.setDefinition(defs);
108 assertEquals(defs, instance.getDefinition());
114 SearchEngine instance = new SearchEngine();
115 assertNull(instance
[all...]
H A DSearchTest.java102 Search instance = new Search();
104 assertTrue(instance.parseCmdLine(new String[]{}));
105 assertTrue(instance.parseCmdLine(new String[]{"-f", "foo"}));
106 assertTrue(instance.parseCmdLine(new String[]{"-r", "foo"}));
107 assertTrue(instance.parseCmdLine(new String[]{"-d", "foo"}));
108 assertTrue(instance.parseCmdLine(new String[]{"-h", "foo"}));
109 assertTrue(instance.parseCmdLine(new String[]{"-p", "foo"}));
110 assertTrue(instance.parseCmdLine(new String[]{"-R", configFile.getAbsolutePath()}));
112 assertFalse(instance.parseCmdLine(new String[]{"-f"}));
113 assertFalse(instance
[all...]
H A DHitTest.java38 Hit instance = new Hit();
39 assertNull(instance.getFilename());
41 instance.setFilename(expResult);
42 assertEquals(expResult, instance.getFilename());
47 Hit instance = new Hit("/foo/bar", null, null, false, false);
48 assertEquals("/foo/bar", instance.getPath());
49 assertEquals("/foo", instance.getDirectory());
54 Hit instance = new Hit();
55 assertNull(instance.getLine());
57 instance
[all...]
H A DSummarizerTest.java44 Summarizer instance = new Summarizer(query, new CompatibleAnalyser());
46 assertNotNull(instance.getSummary("alpha beta gamma delta beta"));
/opengrok-jel/src/org/opensolaris/opengrok/util/
H A DInterner.java49 * @param <T> the type of the objects being interned by the instance
58 * Intern an object and return a canonical instance of it. For two objects
69 * @param instance the object to intern
70 * @return a canonical representation of {@code instance}
72 public T intern(T instance) { argument
73 if (instance == null) {
77 T interned = map.get(instance);
80 interned = instance;
/opengrok-jel/src/org/opensolaris/opengrok/configuration/
H A DRuntimeEnvironment.java55 private static RuntimeEnvironment instance = new RuntimeEnvironment(); field in class:RuntimeEnvironment
59 * Get the one and only instance of the RuntimeEnvironment
60 * @return the one and only instance of the RuntimeEnvironment
63 return instance;
67 * Creates a new instance of RuntimeEnvironment. Private to ensure a
86 instance = new RuntimeEnvironment();
87 return instance;
116 * @return this instance
119 instance.threadConfig.set(instance
[all...]

Completed in 27 milliseconds

12