codemining.java.codeutils.binding.BindingTester Java Examples
The following examples show how to use
codemining.java.codeutils.binding.BindingTester.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JavascriptApproximateVariableBindingExtractorTest.java From api-mining with GNU General Public License v3.0 | 6 votes |
@Test public void testClassBindings() throws IOException { final JavascriptApproximateVariableBindingExtractor jabe = new JavascriptApproximateVariableBindingExtractor(); final JavascriptExactVariableBindingsExtractor jbe = new JavascriptExactVariableBindingsExtractor(); final List<TokenNameBinding> classVariableBindings = jabe .getNameBindings(classContent); final List<TokenNameBinding> classVariableBindingsExact = jbe .getNameBindings(classContent); BindingTester.checkAllBindings(classVariableBindings); assertEquals(classVariableBindings.size(), 3); final List<TokenNameBinding> classVariableBindings2 = jabe .getNameBindings(classContent2); final List<TokenNameBinding> classVariableBindings2Exact = jbe .getNameBindings(classContent2); assertEquals(classVariableBindings2.size(), 13); allAreContained(classVariableBindingsExact, classVariableBindings); allAreContained(classVariableBindings2Exact, classVariableBindings2); }
Example #2
Source File: JavascriptApproximateVariableBindingExtractorTest.java From tassal with BSD 3-Clause "New" or "Revised" License | 6 votes |
@Test public void testClassBindings() throws IOException { final JavascriptApproximateVariableBindingExtractor jabe = new JavascriptApproximateVariableBindingExtractor(); final JavascriptExactVariableBindingsExtractor jbe = new JavascriptExactVariableBindingsExtractor(); final List<TokenNameBinding> classVariableBindings = jabe .getNameBindings(classContent); final List<TokenNameBinding> classVariableBindingsExact = jbe .getNameBindings(classContent); BindingTester.checkAllBindings(classVariableBindings); assertEquals(classVariableBindings.size(), 3); final List<TokenNameBinding> classVariableBindings2 = jabe .getNameBindings(classContent2); final List<TokenNameBinding> classVariableBindings2Exact = jbe .getNameBindings(classContent2); assertEquals(classVariableBindings2.size(), 13); allAreContained(classVariableBindingsExact, classVariableBindings); allAreContained(classVariableBindings2Exact, classVariableBindings2); }
Example #3
Source File: JavascriptApproximateVariableBindingExtractorTest.java From codemining-core with BSD 3-Clause "New" or "Revised" License | 6 votes |
@Test public void testClassBindings() throws IOException { final JavascriptApproximateVariableBindingExtractor jabe = new JavascriptApproximateVariableBindingExtractor(); final JavascriptExactVariableBindingsExtractor jbe = new JavascriptExactVariableBindingsExtractor(); final List<TokenNameBinding> classVariableBindings = jabe .getNameBindings(classContent); final List<TokenNameBinding> classVariableBindingsExact = jbe .getNameBindings(classContent); BindingTester.checkAllBindings(classVariableBindings); assertEquals(classVariableBindings.size(), 3); final List<TokenNameBinding> classVariableBindings2 = jabe .getNameBindings(classContent2); final List<TokenNameBinding> classVariableBindings2Exact = jbe .getNameBindings(classContent2); assertEquals(classVariableBindings2.size(), 13); allAreContained(classVariableBindingsExact, classVariableBindings); allAreContained(classVariableBindings2Exact, classVariableBindings2); }
Example #4
Source File: JavascriptApproximateVariableBindingExtractorTest.java From api-mining with GNU General Public License v3.0 | 5 votes |
@Test public void testMethodBinding() { final JavascriptApproximateVariableBindingExtractor jabe = new JavascriptApproximateVariableBindingExtractor(); final List<TokenNameBinding> methodVariableBindings = jabe .getNameBindings(methodContent); BindingTester.checkAllBindings(methodVariableBindings); assertEquals(methodVariableBindings.size(), 1); }
Example #5
Source File: JavascriptExactVariableBindingsExtractorTest.java From api-mining with GNU General Public License v3.0 | 5 votes |
@Test public void testClassBindings() throws IOException { final JavascriptExactVariableBindingsExtractor jbe = new JavascriptExactVariableBindingsExtractor(); final List<TokenNameBinding> classVariableBindings = jbe .getNameBindings(classContent); BindingTester.checkAllBindings(classVariableBindings); // assertEquals(classVariableBindings.size(), 1); final List<TokenNameBinding> classVariableBindings2 = jbe .getNameBindings(classContent2); // assertEquals(classVariableBindings2.size(), 3); }
Example #6
Source File: JavascriptApproximateVariableBindingExtractorTest.java From tassal with BSD 3-Clause "New" or "Revised" License | 5 votes |
@Test public void testMethodBinding() { final JavascriptApproximateVariableBindingExtractor jabe = new JavascriptApproximateVariableBindingExtractor(); final List<TokenNameBinding> methodVariableBindings = jabe .getNameBindings(methodContent); BindingTester.checkAllBindings(methodVariableBindings); assertEquals(methodVariableBindings.size(), 1); }
Example #7
Source File: JavascriptExactVariableBindingsExtractorTest.java From tassal with BSD 3-Clause "New" or "Revised" License | 5 votes |
@Test public void testClassBindings() throws IOException { final JavascriptExactVariableBindingsExtractor jbe = new JavascriptExactVariableBindingsExtractor(); final List<TokenNameBinding> classVariableBindings = jbe .getNameBindings(classContent); BindingTester.checkAllBindings(classVariableBindings); // assertEquals(classVariableBindings.size(), 1); final List<TokenNameBinding> classVariableBindings2 = jbe .getNameBindings(classContent2); // assertEquals(classVariableBindings2.size(), 3); }
Example #8
Source File: JavascriptApproximateVariableBindingExtractorTest.java From codemining-core with BSD 3-Clause "New" or "Revised" License | 5 votes |
@Test public void testMethodBinding() { final JavascriptApproximateVariableBindingExtractor jabe = new JavascriptApproximateVariableBindingExtractor(); final List<TokenNameBinding> methodVariableBindings = jabe .getNameBindings(methodContent); BindingTester.checkAllBindings(methodVariableBindings); assertEquals(methodVariableBindings.size(), 1); }
Example #9
Source File: JavascriptExactVariableBindingsExtractorTest.java From codemining-core with BSD 3-Clause "New" or "Revised" License | 5 votes |
@Test public void testClassBindings() throws IOException { final JavascriptExactVariableBindingsExtractor jbe = new JavascriptExactVariableBindingsExtractor(); final List<TokenNameBinding> classVariableBindings = jbe .getNameBindings(classContent); BindingTester.checkAllBindings(classVariableBindings); // assertEquals(classVariableBindings.size(), 1); final List<TokenNameBinding> classVariableBindings2 = jbe .getNameBindings(classContent2); // assertEquals(classVariableBindings2.size(), 3); }