@Test public void isDuplicatedVariableName_A$String_true() throws Exception { ClassMetaExtractor target = new ClassMetaExtractor(config); String[] args = new String[] { "target", "actual", "expected", "context", "mocks" }; for (String name : args) { boolean actual = target.isDuplicatedVariableName(name); boolean expected = true; assertEquals(expected, actual); } }
boolean isDuplicatedVariableName(String name) { Assertion.on("name").mustNotBeNull(name); return name.equals("target") || name.equals("actual") || name.equals("expected") || name.equals("context") || name.equals("mocks"); }
ClassMetaExtractor { boolean isDuplicatedVariableName(String name) { Assertion.on("name").mustNotBeNull(name); return name.equals("target") || name.equals("actual") || name.equals("expected") || name.equals("context") || name.equals("mocks"); } }
ClassMetaExtractor { boolean isDuplicatedVariableName(String name) { Assertion.on("name").mustNotBeNull(name); return name.equals("target") || name.equals("actual") || name.equals("expected") || name.equals("context") || name.equals("mocks"); } ClassMetaExtractor(Configuration config); }
ClassMetaExtractor { boolean isDuplicatedVariableName(String name) { Assertion.on("name").mustNotBeNull(name); return name.equals("target") || name.equals("actual") || name.equals("expected") || name.equals("context") || name.equals("mocks"); } ClassMetaExtractor(Configuration config); ClassMeta extract(String sourceCodeString); }
ClassMetaExtractor { boolean isDuplicatedVariableName(String name) { Assertion.on("name").mustNotBeNull(name); return name.equals("target") || name.equals("actual") || name.equals("expected") || name.equals("context") || name.equals("mocks"); } ClassMetaExtractor(Configuration config); ClassMeta extract(String sourceCodeString);  }