id stringlengths 7 14 | test_class dict | test_case dict | focal_class dict | focal_method dict | repository dict |
|---|---|---|---|---|---|
2088736_264 | {
"fields": [
{
"declarator": "componentsManager",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private ComponentsManager componentsManager;",
"type": "ComponentsManager",
"var_name": "componentsManager"
},
{
"declarator": "validator",
"modifie... | {
"body": "@Test\n public void shouldReturnFalseIfFieldIsNotComponentList() throws NoSuchFieldException {\n Field listOfFluentWebElementsField = getField(\"listOfFluentWebElements\");\n when(componentsManager.isComponentListClass((Class<? extends List<?>>) listOfFluentWebElementsField.getType()))\n ... | {
"fields": [
{
"declarator": "componentsManager",
"modifier": "private final",
"original_string": "private final ComponentsManager componentsManager;",
"type": "ComponentsManager",
"var_name": "componentsManager"
}
],
"file": "fluentlenium-core/src/main/java/org/fluentlenium... | {
"body": "boolean isComponentList(Field field) {\n if (isList(field)) {\n boolean componentListClass = componentsManager.isComponentListClass((Class<? extends List<?>>) field.getType());\n if (componentListClass) {\n Class<?> genericType = ReflectionUtils.getFirstGenericTy... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_634 | {
"fields": [
{
"declarator": "driver",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private WebDriver driver;",
"type": "WebDriver",
"var_name": "driver"
},
{
"declarator": "searchContext",
"modifier": "@Mock\n private",
"original_str... | {
"body": "@Test\n public void findCheckCssIsWellFormed() {\n WebElement webElement = mock(WebElement.class);\n WebElement webElement2 = mock(WebElement.class);\n List<WebElement> webElements = new ArrayList<>(Arrays.asList(webElement, webElement2));\n\n when(searchContext.findElements(... | {
"fields": [
{
"declarator": "searchContext",
"modifier": "private final",
"original_string": "private final SearchContext searchContext;",
"type": "SearchContext",
"var_name": "searchContext"
},
{
"declarator": "container",
"modifier": "private final",
"or... | {
"body": "@Override\n public FluentList<FluentWebElement> find(String selector, SearchFilter... filters) {\n StringBuilder stringBuilder = new StringBuilder(selector);\n List<SearchFilter> postFilterSelector = new ArrayList<>();\n if (filters != null && filters.length > 0) {\n for ... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_376 | {
"fields": [
{
"declarator": "webElement",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private WebElement webElement;",
"type": "WebElement",
"var_name": "webElement"
},
{
"declarator": "webDriver",
"modifier": "@Mock\n private",
"or... | {
"body": "@Test\n public void containsText() {\n when(webElement.getText()).thenReturn(\"Some Text\");\n\n assertThat(conditions.text().contains(\"Te\")).isTrue();\n assertThat(conditions.text().contains(\"Other\")).isFalse();\n }",
"class_method_signature": "WebElementConditionsTest.con... | {
"fields": [],
"file": "fluentlenium-core/src/main/java/org/fluentlenium/core/conditions/WebElementConditions.java",
"identifier": "WebElementConditions",
"interfaces": "implements FluentConditions",
"methods": [
{
"class_method_signature": "WebElementConditions.WebElementConditions(FluentWebElemen... | {
"body": "@Override\n public StringConditions text() {\n return new StringConditionsImpl(object.text(), negation);\n }",
"class_method_signature": "WebElementConditions.text()",
"constructor": false,
"full_signature": "@Override public StringConditions text()",
"identifier": "text",
"invocatio... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_35 | {
"fields": [
{
"declarator": "element",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentWebElement element;",
"type": "FluentWebElement",
"var_name": "element"
},
{
"declarator": "elementAssert",
"modifier": "private",
"origin... | {
"body": "@Test\n public void testHasNotAttributeKo() {\n when(element.attribute(\"attribute\")).thenReturn(\"some value\");\n assertThatAssertionErrorIsThrownBy(() -> elementAssert.hasNotAttribute(\"attribute\"));\n }",
"class_method_signature": "FluentWebElementAssertTest.testHasNotAttributeK... | {
"fields": [],
"file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentWebElementAssert.java",
"identifier": "FluentWebElementAssert",
"interfaces": "implements ElementStateAssert, ElementAttributeAssert",
"methods": [
{
"class_method_signature": "FluentWebElementAssert.Fl... | {
"body": "@Override\n public FluentWebElementAssert hasNotAttribute(String attribute) {\n if (actual.attribute(attribute) != null) {\n failWithMessage(\"The element has attribute \" + attribute);\n }\n return this;\n }",
"class_method_signature": "FluentWebElementAssert.hasNot... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_399 | {
"fields": [
{
"declarator": "attributeFilter",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private AttributeFilter attributeFilter;",
"type": "AttributeFilter",
"var_name": "attributeFilter"
},
{
"declarator": "fluentWebElement",
"modifier":... | {
"body": "@Test\n public void otherAttributeShouldNotSatisfyMatcher() {\n setupPredicateAndMatcher(\"not-text attribute value\");\n when(attributeFilter.getAttribute()).thenReturn(\"not-text\");\n when(fluentWebElement.attribute(\"not-text\")).thenReturn(\"not-text attribute\");\n\n as... | {
"fields": [
{
"declarator": "filter",
"modifier": "private final",
"original_string": "private final AttributeFilter filter;",
"type": "AttributeFilter",
"var_name": "filter"
}
],
"file": "fluentlenium-core/src/main/java/org/fluentlenium/core/filter/AttributeFilterPredicate... | {
"body": "@Override\n public boolean test(FluentWebElement element) {\n String attribute = getAttributeValue(element);\n return filter.getMatcher().isSatisfiedBy(attribute);\n }",
"class_method_signature": "AttributeFilterPredicate.test(FluentWebElement element)",
"constructor": false,
"ful... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_233 | {
"fields": [],
"file": "fluentlenium-core/src/test/java/org/fluentlenium/utils/UrlUtilsTest.java",
"identifier": "UrlUtilsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testBaseUrlWithPathWithoutTrailingSlashRootPath() {\n String test = UrlUtils.concat(\"http://fluentlenium.com/path\", \"/abc/def\");\n Assertions.assertThat(test).isEqualTo(\"http://fluentlenium.com/path/abc/def\");\n }",
"class_method_signature": "UrlUtilsTest.tes... | {
"fields": [
{
"declarator": "PATH_SEPARATOR = \"/\"",
"modifier": "private static final",
"original_string": "private static final String PATH_SEPARATOR = \"/\";",
"type": "String",
"var_name": "PATH_SEPARATOR"
},
{
"declarator": "HTTP = \"http\"",
"modifier": "... | {
"body": "public static String concat(String baseUriSpec, String uriSpec) { // NOPMD CyclomaticComplexity NPathComplexity\n if (baseUriSpec != null && !baseUriSpec.endsWith(PATH_SEPARATOR)) {\n baseUriSpec = baseUriSpec + PATH_SEPARATOR;\n }\n URI baseUri = uriFromSpec(baseUriSpec);\n... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_474 | {
"fields": [
{
"declarator": "fluentControlWait",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentWait fluentControlWait;",
"type": "FluentWait",
"var_name": "fluentControlWait"
},
{
"declarator": "fluentList",
"modifier": "@Mock\n ... | {
"body": "@Test\n public void untilElement() {\n FluentWebElement element = mock(FluentWebElement.class);\n\n wait.until(element);\n Mockito.verify(fluentControlWait).until(element);\n }",
"class_method_signature": "FluentWaitElementListTest.untilElement()",
"constructor": false,
"fu... | {
"fields": [
{
"declarator": "elements",
"modifier": "private final",
"original_string": "private final List<? extends FluentWebElement> elements;",
"type": "List<? extends FluentWebElement>",
"var_name": "elements"
},
{
"declarator": "controlWait",
"modifier": "... | {
"body": "@Override\n public FluentConditions untilElement(Supplier<? extends FluentWebElement> selector) {\n return controlWait.untilElement(selector);\n }",
"class_method_signature": "FluentWaitElementList.untilElement(Supplier<? extends FluentWebElement> selector)",
"constructor": false,
"full_... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_161 | {
"fields": [
{
"declarator": "DRIVER_LIFECYCLE = \"driverLifecycle\"",
"modifier": "private static final",
"original_string": "private static final String DRIVER_LIFECYCLE = \"driverLifecycle\";",
"type": "String",
"var_name": "DRIVER_LIFECYCLE"
},
{
"declarator": "ret... | {
"body": "@Test\n public void pageLoadTimeout() {\n assertThat(getConfiguration().getPageLoadTimeout()).isNull();\n\n mockProperty(\"pageLoadTimeout\", 1000L);\n assertThat(getConfiguration().getPageLoadTimeout()).isEqualTo(1000L);\n }",
"class_method_signature": "PropertiesBackendConfig... | {
"fields": [
{
"declarator": "PROPERTIES_PREFIX = \"fluentlenium.\"",
"modifier": "static final",
"original_string": "static final String PROPERTIES_PREFIX = \"fluentlenium.\";",
"type": "String",
"var_name": "PROPERTIES_PREFIX"
},
{
"declarator": "prefixes",
"mo... | {
"body": "@Override\n public Long getPageLoadTimeout() {\n return getLongProperty(\"pageLoadTimeout\");\n }",
"class_method_signature": "PropertiesBackendConfiguration.getPageLoadTimeout()",
"constructor": false,
"full_signature": "@Override public Long getPageLoadTimeout()",
"identifier": "getP... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_531 | {
"fields": [
{
"declarator": "keyboard",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private Keyboard keyboard;",
"type": "Keyboard",
"var_name": "keyboard"
},
{
"declarator": "mouse",
"modifier": "@Mock\n private",
"original_string"... | {
"body": "@Test\n public void testDoubleClick() {\n MouseElementActions actions = new MouseElementActions(driver, element);\n actions.doubleClick();\n\n verify(mouse).mouseMove(coordinates);\n verify(mouse).doubleClick(coordinates);\n }",
"class_method_signature": "MouseElementAct... | {
"fields": [
{
"declarator": "driver",
"modifier": "private final",
"original_string": "private final WebDriver driver;",
"type": "WebDriver",
"var_name": "driver"
},
{
"declarator": "element",
"modifier": "private final",
"original_string": "private final ... | {
"body": "public MouseElementActions doubleClick() {\n loadElementAndPerform(actions().doubleClick(element));\n return this;\n }",
"class_method_signature": "MouseElementActions.doubleClick()",
"constructor": false,
"full_signature": "public MouseElementActions doubleClick()",
"identifier": ... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_618 | {
"fields": [
{
"declarator": "element",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private LocatableElement element;",
"type": "LocatableElement",
"var_name": "element"
},
{
"declarator": "driver",
"modifier": "@Mock\n private",
"or... | {
"body": "@Test\n public void shouldReturnFalseForEnabledIfNoSuchElement() {\n when(element.isEnabled()).thenThrow(NoSuchElementException.class);\n assertThat(fluentElement.enabled()).isFalse();\n }",
"class_method_signature": "FluentWebElementTest.shouldReturnFalseForEnabledIfNoSuchElement()",... | {
"fields": [
{
"declarator": "search",
"modifier": "private final",
"original_string": "private final Search search;",
"type": "Search",
"var_name": "search"
},
{
"declarator": "dom",
"modifier": "private final",
"original_string": "private final Dom dom;",... | {
"body": "public boolean enabled() {\n boolean enabled;\n try {\n enabled = webElement.isEnabled();\n } catch (NoSuchElementException e) {\n enabled = false;\n }\n return enabled;\n }",
"class_method_signature": "FluentWebElement.enabled()",
"constructo... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_248 | {
"fields": [],
"file": "fluentlenium-core/src/test/java/org/fluentlenium/core/inject/LabelAnnotationsTest.java",
"identifier": "LabelAnnotationsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void shouldNotSetLabelHintIfLabelHintAnnotationIsNotPresent() throws NoSuchFieldException {\n LabelAnnotations labelAnnotations = createLabelAnnotationsForField(\"fieldWithoutLabelHint\");\n\n assertThat(labelAnnotations.getLabelHints()).isNull();\n }",
"class_method_si... | {
"fields": [
{
"declarator": "label",
"modifier": "private",
"original_string": "private String label;",
"type": "String",
"var_name": "label"
},
{
"declarator": "labelHints",
"modifier": "private",
"original_string": "private String[] labelHints;",
"... | {
"body": "@SuppressWarnings(\"PMD.MethodReturnsInternalArray\")\n @Override\n public String[] getLabelHints() {\n return labelHints;\n }",
"class_method_signature": "LabelAnnotations.getLabelHints()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"PMD.MethodReturnsInternalArray\")... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_423 | {
"fields": [],
"file": "fluentlenium-core/src/test/java/org/fluentlenium/core/filter/matcher/NotStartsWithMatcherTest.java",
"identifier": "NotStartsWithMatcherTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void shouldStartWithString() {\n NotStartsWithMatcher matcher = new NotStartsWithMatcher(\"some va\");\n\n assertThat(matcher.isSatisfiedBy(\"some value\")).isFalse();\n }",
"class_method_signature": "NotStartsWithMatcherTest.shouldStartWithString()",
"constructor": f... | {
"fields": [],
"file": "fluentlenium-core/src/main/java/org/fluentlenium/core/filter/matcher/NotStartsWithMatcher.java",
"identifier": "NotStartsWithMatcher",
"interfaces": "",
"methods": [
{
"class_method_signature": "NotStartsWithMatcher.NotStartsWithMatcher(String value)",
"constructor": t... | {
"body": "@Override\n public boolean isSatisfiedBy(String currentValue) {\n return !CalculateService.startsWith(getPattern(), getValue(), currentValue);\n }",
"class_method_signature": "NotStartsWithMatcher.isSatisfiedBy(String currentValue)",
"constructor": false,
"full_signature": "@Override pub... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_589 | {
"fields": [
{
"declarator": "element1",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentWebElement element1;",
"type": "FluentWebElement",
"var_name": "element1"
},
{
"declarator": "element2",
"modifier": "@Mock\n private",
... | {
"body": "@Test\n public void testClearAllReactInputs() {\n when(element2.enabled()).thenReturn(true);\n when(element3.enabled()).thenReturn(true);\n\n list.clearAllReactInputs();\n\n verify(element1, never()).clearReactInput();\n verify(element2).clearReactInput();\n ver... | {
"fields": [
{
"declarator": "DEFAULT_WAIT_AND_CLICK_DURATION = Duration.ofSeconds(5)",
"modifier": "private static final",
"original_string": "private static final Duration DEFAULT_WAIT_AND_CLICK_DURATION = Duration.ofSeconds(5);",
"type": "Duration",
"var_name": "DEFAULT_WAIT_AND_... | {
"body": "@Override\n public FluentList<E> clearAllReactInputs() {\n return clearAllInputs(FluentWebElement::clearReactInput, \"clear values by using backspace\");\n }",
"class_method_signature": "FluentListImpl.clearAllReactInputs()",
"constructor": false,
"full_signature": "@Override public Flue... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_566 | {
"fields": [
{
"declarator": "CSS_TEXT = \"some: css\"",
"modifier": "private static final",
"original_string": "private static final String CSS_TEXT = \"some: css\";",
"type": "String",
"var_name": "CSS_TEXT"
},
{
"declarator": "javascriptControl",
"modifier": "... | {
"body": "@Test\n public void shouldThrowNPEIfResourceIsNotFound() {\n String cssResourceName = \"/an/invalid/path.js\";\n\n assertThatThrownBy(() -> cssSupport.injectResource(cssResourceName)).isInstanceOf(NullPointerException.class);\n }",
"class_method_signature": "CssSupportImplTest.shouldT... | {
"fields": [
{
"declarator": "INJECTOR_JS_PATH = \"/org/fluentlenium/core/css/injector.js\"",
"modifier": "private static final",
"original_string": "private static final String INJECTOR_JS_PATH = \"/org/fluentlenium/core/css/injector.js\";",
"type": "String",
"var_name": "INJECTOR_... | {
"body": "@Override\n public void injectResource(String cssResourceName) {\n inject(getContentOf(cssResourceName));\n }",
"class_method_signature": "CssSupportImpl.injectResource(String cssResourceName)",
"constructor": false,
"full_signature": "@Override public void injectResource(String cssResou... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_136 | {
"fields": [
{
"declarator": "fluentList",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentList<FluentWebElement> fluentList;",
"type": "FluentList<FluentWebElement>",
"var_name": "fluentList"
},
{
"declarator": "listAssert",
"modif... | {
"body": "@Test\n public void testHasAttributeValueOk() {\n when(fluentList.attributes(\"name\")).thenReturn(Lists.newArrayList(\"name-one\", \"name-two\"));\n listAssert.hasAttributeValue(\"name\", \"name-one\");\n }",
"class_method_signature": "FluentListAssertTest.testHasAttributeValueOk()",... | {
"fields": [],
"file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentListAssert.java",
"identifier": "FluentListAssert",
"interfaces": "implements ListStateAssert, ListAttributeAssert",
"methods": [
{
"class_method_signature": "FluentListAssert.FluentListAssert(FluentLis... | {
"body": "@Override\n public FluentListAssert hasAttributeValue(String attribute, String value) {\n List<String> actualValues = requiresNonEmpty(actual.attributes(attribute));\n if (!actualValues.contains(value)) {\n failWithMessage(\"No selected elements have attribute \" + attribute\n ... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_5 | {
"fields": [
{
"declarator": "element",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentWebElement element;",
"type": "FluentWebElement",
"var_name": "element"
},
{
"declarator": "elementAssert",
"modifier": "private",
"origin... | {
"body": "@Test\n public void testIsNotEnabledOk() {\n when(element.present()).thenReturn(true);\n when(element.enabled()).thenReturn(false);\n elementAssert.isNotEnabled();\n }",
"class_method_signature": "FluentWebElementAssertTest.testIsNotEnabledOk()",
"constructor": false,
"full... | {
"fields": [],
"file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentWebElementAssert.java",
"identifier": "FluentWebElementAssert",
"interfaces": "implements ElementStateAssert, ElementAttributeAssert",
"methods": [
{
"class_method_signature": "FluentWebElementAssert.Fl... | {
"body": "@Override\n public FluentWebElementAssert isNotEnabled() {\n isPresentAndIs(() -> actual.enabled(), \"Element in assertion is present but enabled\");\n return this;\n }",
"class_method_signature": "FluentWebElementAssert.isNotEnabled()",
"constructor": false,
"full_signature": "@O... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_19 | {
"fields": [
{
"declarator": "element",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentWebElement element;",
"type": "FluentWebElement",
"var_name": "element"
},
{
"declarator": "elementAssert",
"modifier": "private",
"origin... | {
"body": "@Test\n public void testIsNotSelectedOk() {\n when(element.present()).thenReturn(true);\n when(element.selected()).thenReturn(false);\n elementAssert.isNotSelected();\n }",
"class_method_signature": "FluentWebElementAssertTest.testIsNotSelectedOk()",
"constructor": false,
"... | {
"fields": [],
"file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentWebElementAssert.java",
"identifier": "FluentWebElementAssert",
"interfaces": "implements ElementStateAssert, ElementAttributeAssert",
"methods": [
{
"class_method_signature": "FluentWebElementAssert.Fl... | {
"body": "@Override\n public FluentWebElementAssert isNotSelected() {\n isPresentAndIs(() -> actual.selected(), \"Element in assertion is present but selected\");\n return this;\n }",
"class_method_signature": "FluentWebElementAssert.isNotSelected()",
"constructor": false,
"full_signature":... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_435 | {
"fields": [],
"file": "fluentlenium-core/src/test/java/org/fluentlenium/core/filter/matcher/CalculateServiceTest.java",
"identifier": "CalculateServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void checkSimpleEqualNok() {\n assertThat(CalculateService.equal(null, \"toto\", \"tot\")).isFalse();\n }",
"class_method_signature": "CalculateServiceTest.checkSimpleEqualNok()",
"constructor": false,
"full_signature": "@Test public void checkSimpleEqualNok()",
"identif... | {
"fields": [],
"file": "fluentlenium-core/src/main/java/org/fluentlenium/core/filter/matcher/CalculateService.java",
"identifier": "CalculateService",
"interfaces": "",
"methods": [
{
"class_method_signature": "CalculateService.CalculateService()",
"constructor": true,
"full_signature":... | {
"body": "public static boolean equal(Pattern patternValue, String referenceValue, String currentValue) {\n if (currentValue == null) {\n return false;\n }\n if (patternValue == null) {\n return currentValue.equals(referenceValue);\n }\n return patternValue.ma... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_120 | {
"fields": [
{
"declarator": "fluentList",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentList<FluentWebElement> fluentList;",
"type": "FluentList<FluentWebElement>",
"var_name": "fluentList"
},
{
"declarator": "listAssert",
"modif... | {
"body": "@Test\n public void testHasClassOk() {\n when(fluentList.attributes(\"class\")).thenReturn(Lists.newArrayList(\"some-class\", \"unknown-class\"));\n listAssert.hasClass(\"some-class\");\n }",
"class_method_signature": "FluentListAssertTest.testHasClassOk()",
"constructor": false,
... | {
"fields": [],
"file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentListAssert.java",
"identifier": "FluentListAssert",
"interfaces": "implements ListStateAssert, ListAttributeAssert",
"methods": [
{
"class_method_signature": "FluentListAssert.FluentListAssert(FluentLis... | {
"body": "@Override\n public FluentListAssert hasClass(String classToFind) {\n return validateHasClasses(\"No selected elements have class: \", classToFind);\n }",
"class_method_signature": "FluentListAssert.hasClass(String classToFind)",
"constructor": false,
"full_signature": "@Override public F... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_570 | {
"fields": [
{
"declarator": "webDriver",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private WebDriver webDriver;",
"type": "WebDriver",
"var_name": "webDriver"
},
{
"declarator": "manage",
"modifier": "@Mock\n private",
"original_s... | {
"body": "@Test\n public void shouldConfigureImplicitlyWait() {\n mockWebDriver();\n mockConfigurationValues(null, 2000L, null);\n\n timeoutConfigurer.configureDriver();\n\n verify(timeouts).implicitlyWait(2000L, TimeUnit.MILLISECONDS);\n verifyNoMoreInteractions(timeouts);\n ... | {
"fields": [
{
"declarator": "configuration",
"modifier": "private final",
"original_string": "private final Configuration configuration;",
"type": "Configuration",
"var_name": "configuration"
},
{
"declarator": "driver",
"modifier": "private final",
"origi... | {
"body": "public void configureDriver() {\n if (driver != null && driver.manage() != null && driver.manage().timeouts() != null) {\n configurePageLoadTimeout();\n configureImplicitlyWait();\n configureScriptTimeout();\n }\n }",
"class_method_signature": "FluentDriv... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_209 | {
"fields": [
{
"declarator": "configuration",
"modifier": "private",
"original_string": "private ProgrammaticConfiguration configuration;",
"type": "ProgrammaticConfiguration",
"var_name": "configuration"
},
{
"declarator": "configurationProperties1",
"modifier":... | {
"body": "@Test\n public void baseUrl() {\n testImpl(ConfigurationProperties::getBaseUrl, input -> {\n composed.setBaseUrl(input);\n return null;\n }, null, \"firefox\", \"chrome\");\n }",
"class_method_signature": "ComposedConfigurationTest.baseUrl()",
"constructor": fa... | {
"fields": [
{
"declarator": "configurations",
"modifier": "private final",
"original_string": "private final ConfigurationProperties[] configurations;",
"type": "ConfigurationProperties[]",
"var_name": "configurations"
},
{
"declarator": "writableConfiguration",
... | {
"body": "@Override\n public void setBaseUrl(String baseUrl) {\n getWritableConfiguration().setBaseUrl(baseUrl);\n }",
"class_method_signature": "ComposedConfiguration.setBaseUrl(String baseUrl)",
"constructor": false,
"full_signature": "@Override public void setBaseUrl(String baseUrl)",
"identi... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_462 | {
"fields": [
{
"declarator": "fluentControlWait",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentWait fluentControlWait;",
"type": "FluentWait",
"var_name": "fluentControlWait"
},
{
"declarator": "fluentList",
"modifier": "@Mock\n ... | {
"body": "@Test\n public void atMostDuration() {\n assertThat(wait.atMost(Duration.ofMillis(10))).isSameAs(wait);\n Mockito.verify(fluentControlWait).atMost(Duration.ofMillis(10));\n }",
"class_method_signature": "FluentWaitElementListTest.atMostDuration()",
"constructor": false,
"full_sign... | {
"fields": [
{
"declarator": "elements",
"modifier": "private final",
"original_string": "private final List<? extends FluentWebElement> elements;",
"type": "List<? extends FluentWebElement>",
"var_name": "elements"
},
{
"declarator": "controlWait",
"modifier": "... | {
"body": "@Override\n public FluentWaitElementList atMost(Duration duration) {\n controlWait.atMost(duration);\n return this;\n }",
"class_method_signature": "FluentWaitElementList.atMost(Duration duration)",
"constructor": false,
"full_signature": "@Override public FluentWaitElementList at... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_198 | {
"fields": [
{
"declarator": "configuration",
"modifier": "private static",
"original_string": "private static AnnotationConfiguration configuration;",
"type": "AnnotationConfiguration",
"var_name": "configuration"
},
{
"declarator": "defaultConfiguration",
"modi... | {
"body": "@Test\n public void screenshotPath() {\n Assertions.assertThat(noConfiguration.getScreenshotPath()).isNull();\n Assertions.assertThat(defaultConfiguration.getScreenshotPath()).isNull();\n\n Assertions.assertThat(configuration.getScreenshotPath()).isEqualTo(\"/screenshot-path\");\n ... | {
"fields": [
{
"declarator": "configuration",
"modifier": "private final",
"original_string": "private final FluentConfiguration configuration;",
"type": "FluentConfiguration",
"var_name": "configuration"
},
{
"declarator": "customProperties = new HashMap<>()",
"... | {
"body": "@Override\n public String getScreenshotPath() {\n return getConfig(() -> getStringValue(configuration.screenshotPath()));\n }",
"class_method_signature": "AnnotationConfiguration.getScreenshotPath()",
"constructor": false,
"full_signature": "@Override public String getScreenshotPath()",
... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_527 | {
"fields": [
{
"declarator": "keyboard",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private Keyboard keyboard;",
"type": "Keyboard",
"var_name": "keyboard"
},
{
"declarator": "mouse",
"modifier": "@Mock\n private",
"original_string"... | {
"body": "@Test\n public void testClickAndHold() {\n MouseElementActions actions = new MouseElementActions(driver, element);\n actions.clickAndHold();\n\n verify(mouse).mouseMove(coordinates);\n verify(mouse).mouseDown(coordinates);\n }",
"class_method_signature": "MouseElementAct... | {
"fields": [
{
"declarator": "driver",
"modifier": "private final",
"original_string": "private final WebDriver driver;",
"type": "WebDriver",
"var_name": "driver"
},
{
"declarator": "element",
"modifier": "private final",
"original_string": "private final ... | {
"body": "public MouseElementActions clickAndHold() {\n loadElementAndPerform(actions().clickAndHold(element));\n return this;\n }",
"class_method_signature": "MouseElementActions.clickAndHold()",
"constructor": false,
"full_signature": "public MouseElementActions clickAndHold()",
"identifie... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_177 | {
"fields": [
{
"declarator": "configuration",
"modifier": "private static",
"original_string": "private static AnnotationConfiguration configuration;",
"type": "AnnotationConfiguration",
"var_name": "configuration"
},
{
"declarator": "defaultConfiguration",
"modi... | {
"body": "@Test\n public void configurationDefaults() {\n Assertions.assertThat(configuration.getConfigurationDefaults()).isEqualTo(DummyConfigurationDefaults.class);\n }",
"class_method_signature": "AnnotationConfigurationTest.configurationDefaults()",
"constructor": false,
"full_signature": "@Te... | {
"fields": [
{
"declarator": "configuration",
"modifier": "private final",
"original_string": "private final FluentConfiguration configuration;",
"type": "FluentConfiguration",
"var_name": "configuration"
},
{
"declarator": "customProperties = new HashMap<>()",
"... | {
"body": "@Override\n public Class<? extends ConfigurationProperties> getConfigurationDefaults() {\n return getConfig(() -> getConfigurationDefaultsClassValue(configuration.configurationDefaults()));\n }",
"class_method_signature": "AnnotationConfiguration.getConfigurationDefaults()",
"constructor":... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_58 | {
"fields": [
{
"declarator": "element",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentWebElement element;",
"type": "FluentWebElement",
"var_name": "element"
},
{
"declarator": "elementAssert",
"modifier": "private",
"origin... | {
"body": "@Test\n public void testHasNotTextContainingPositive() {\n when(element.text()).thenReturn(\"Something\");\n elementAssert.hasNotTextContaining(\"Text which isn't above\");\n }",
"class_method_signature": "FluentWebElementAssertTest.testHasNotTextContainingPositive()",
"constructor"... | {
"fields": [],
"file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentWebElementAssert.java",
"identifier": "FluentWebElementAssert",
"interfaces": "implements ElementStateAssert, ElementAttributeAssert",
"methods": [
{
"class_method_signature": "FluentWebElementAssert.Fl... | {
"body": "@Override\n public FluentWebElementAssert hasNotTextContaining(String textToFind) {\n if (actual.text().contains(textToFind)) {\n failWithMessage(\"The element contains the text: \" + textToFind);\n }\n return this;\n }",
"class_method_signature": "FluentWebElementAs... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_383 | {
"fields": [
{
"declarator": "conditions",
"modifier": "private",
"original_string": "private EachElementConditions conditions;",
"type": "EachElementConditions",
"var_name": "conditions"
}
],
"file": "fluentlenium-core/src/test/java/org/fluentlenium/core/conditions/EachElem... | {
"body": "@Test\n public void hasSize() {\n assertThat(conditions.size(3)).isTrue();\n assertThat(conditions.size().equalTo(3)).isTrue();\n assertThat(conditions.size(2)).isFalse();\n assertThat(conditions.size().equalTo(2)).isFalse();\n\n assertThat(conditions.not().size(3)).is... | {
"fields": [],
"file": "fluentlenium-core/src/main/java/org/fluentlenium/core/conditions/EachElementConditions.java",
"identifier": "EachElementConditions",
"interfaces": "",
"methods": [
{
"class_method_signature": "EachElementConditions.EachElementConditions(List<? extends FluentWebElement> eleme... | {
"body": "@Override\n public EachElementConditions not() {\n EachElementConditions negatedConditions = new EachElementConditions(getElements());\n negatedConditions.setNegation(!isNegation());\n return negatedConditions;\n }",
"class_method_signature": "EachElementConditions.not()",
"c... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_229 | {
"fields": [],
"file": "fluentlenium-core/src/test/java/org/fluentlenium/utils/UrlUtilsTest.java",
"identifier": "UrlUtilsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testBaseUrlWithPathWithoutTrailingSlash() {\n String test = UrlUtils.concat(\"http://fluentlenium.com/path\", \"abc/def\");\n Assertions.assertThat(test).isEqualTo(\"http://fluentlenium.com/path/abc/def\");\n }",
"class_method_signature": "UrlUtilsTest.testBaseUrlW... | {
"fields": [
{
"declarator": "PATH_SEPARATOR = \"/\"",
"modifier": "private static final",
"original_string": "private static final String PATH_SEPARATOR = \"/\";",
"type": "String",
"var_name": "PATH_SEPARATOR"
},
{
"declarator": "HTTP = \"http\"",
"modifier": "... | {
"body": "public static String concat(String baseUriSpec, String uriSpec) { // NOPMD CyclomaticComplexity NPathComplexity\n if (baseUriSpec != null && !baseUriSpec.endsWith(PATH_SEPARATOR)) {\n baseUriSpec = baseUriSpec + PATH_SEPARATOR;\n }\n URI baseUri = uriFromSpec(baseUriSpec);\n... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_100 | {
"fields": [
{
"declarator": "fluentList",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentList<FluentWebElement> fluentList;",
"type": "FluentList<FluentWebElement>",
"var_name": "fluentList"
},
{
"declarator": "listAssert",
"modif... | {
"body": "@Test\n public void testHasSizeNotEqualOk() {\n when(fluentList.count()).thenReturn(0);\n listAssert.hasSize().notEqualTo(1);\n }",
"class_method_signature": "FluentListAssertTest.testHasSizeNotEqualOk()",
"constructor": false,
"full_signature": "@Test public void testHasSizeNotEq... | {
"fields": [],
"file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentListAssert.java",
"identifier": "FluentListAssert",
"interfaces": "implements ListStateAssert, ListAttributeAssert",
"methods": [
{
"class_method_signature": "FluentListAssert.FluentListAssert(FluentLis... | {
"body": "@Override\n public FluentListAssert hasSize(int expectedSize) {\n int actualSize = actual.count();\n if (actualSize != expectedSize) {\n failWithMessage(\"Expected size: \" + expectedSize + \". Actual size: \" + actualSize + \".\");\n }\n return this;\n }",
"c... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_550 | {
"fields": [
{
"declarator": "keyboard",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private Keyboard keyboard;",
"type": "Keyboard",
"var_name": "keyboard"
},
{
"declarator": "mouse",
"modifier": "@Mock\n private",
"original_string"... | {
"body": "@Test\n public void testKeyUp() {\n KeyboardActions actions = new KeyboardActions(driver);\n actions.keyUp(Keys.SHIFT);\n\n verify(mouse, never()).mouseMove(any(Coordinates.class));\n verify(keyboard).releaseKey(Keys.SHIFT);\n }",
"class_method_signature": "KeyboardActio... | {
"fields": [
{
"declarator": "driver",
"modifier": "private final",
"original_string": "private final WebDriver driver;",
"type": "WebDriver",
"var_name": "driver"
}
],
"file": "fluentlenium-core/src/main/java/org/fluentlenium/core/action/KeyboardActions.java",
"identifier... | {
"body": "public KeyboardActions keyUp(Keys theKey) {\n actions().keyUp(theKey).perform();\n return this;\n }",
"class_method_signature": "KeyboardActions.keyUp(Keys theKey)",
"constructor": false,
"full_signature": "public KeyboardActions keyUp(Keys theKey)",
"identifier": "keyUp",
"invoc... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_415 | {
"fields": [],
"file": "fluentlenium-core/src/test/java/org/fluentlenium/core/filter/matcher/ContainsMatcherTest.java",
"identifier": "ContainsMatcherTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void shouldNotContainPattern() {\n ContainsMatcher matcher = new ContainsMatcher(Pattern.compile(\"value.*\"));\n\n assertThat(matcher.isSatisfiedBy(\"non-matching\")).isFalse();\n }",
"class_method_signature": "ContainsMatcherTest.shouldNotContainPattern()",
"constru... | {
"fields": [],
"file": "fluentlenium-core/src/main/java/org/fluentlenium/core/filter/matcher/ContainsMatcher.java",
"identifier": "ContainsMatcher",
"interfaces": "",
"methods": [
{
"class_method_signature": "ContainsMatcher.ContainsMatcher(String value)",
"constructor": true,
"full_sig... | {
"body": "@Override\n public boolean isSatisfiedBy(String currentValue) {\n return CalculateService.contains(getPattern(), getValue(), currentValue);\n }",
"class_method_signature": "ContainsMatcher.isSatisfiedBy(String currentValue)",
"constructor": false,
"full_signature": "@Override public bool... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_78 | {
"fields": [
{
"declarator": "element",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentWebElement element;",
"type": "FluentWebElement",
"var_name": "element"
},
{
"declarator": "fluentPage",
"modifier": "@Mock\n private",
... | {
"body": "@Test\n public void testIsAt() {\n pageAssert.isAt();\n verify(fluentPage).isAt();\n }",
"class_method_signature": "PageAssertTest.testIsAt()",
"constructor": false,
"full_signature": "@Test public void testIsAt()",
"identifier": "testIsAt",
"invocations": [
"isAt",
"i... | {
"fields": [],
"file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/PageAssert.java",
"identifier": "PageAssert",
"interfaces": "implements PageStateAssert",
"methods": [
{
"class_method_signature": "PageAssert.PageAssert(FluentPage actual)",
"constructor": true,
... | {
"body": "@Deprecated\n @Override\n public PageAssert isAt() {\n actual.isAt();\n return this;\n }",
"class_method_signature": "PageAssert.isAt()",
"constructor": false,
"full_signature": "@Deprecated @Override public PageAssert isAt()",
"identifier": "isAt",
"invocations": [
"is... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_291 | {
"fields": [],
"file": "fluentlenium-core/src/test/java/org/fluentlenium/core/url/UrlTemplateTest.java",
"identifier": "UrlTemplateTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testParseMatchingWithTrailingSlash() {\n UrlTemplate urlParametersTemplate = new UrlTemplate(\"/abc/{param1}/def/{param2}{?/param3}\");\n assertThat(getParameterNames(urlParametersTemplate)).containsExactly(\"param1\", \"param2\", \"param3\");\n assertThat(getPar... | {
"fields": [
{
"declarator": "PARAM_REGEX = Pattern.compile(\"\\\\{(.+?)\\\\}\")",
"modifier": "private static final",
"original_string": "private static final Pattern PARAM_REGEX = Pattern.compile(\"\\\\{(.+?)\\\\}\");",
"type": "Pattern",
"var_name": "PARAM_REGEX"
},
{
... | {
"body": "public ParsedUrlTemplate parse(String input) {\n String noQueryInput;\n List<NameValuePair> queryParameters;\n\n try {\n URIBuilder uriBuilder = new URIBuilder(input);\n queryParameters = uriBuilder.getQueryParams();\n uriBuilder.setCustomQuery(null);\n... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_97 | {
"fields": [
{
"declarator": "fluentList",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentList<FluentWebElement> fluentList;",
"type": "FluentList<FluentWebElement>",
"var_name": "fluentList"
},
{
"declarator": "listAssert",
"modif... | {
"body": "@Test\n public void testHasSizeEmptyKo() {\n when(fluentList.count()).thenReturn(1);\n assertThatAssertionErrorIsThrownBy(() -> listAssert.isEmpty()).hasMessage(\"Expected size: 0. Actual size: 1.\");\n }",
"class_method_signature": "FluentListAssertTest.testHasSizeEmptyKo()",
"cons... | {
"fields": [],
"file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentListAssert.java",
"identifier": "FluentListAssert",
"interfaces": "implements ListStateAssert, ListAttributeAssert",
"methods": [
{
"class_method_signature": "FluentListAssert.FluentListAssert(FluentLis... | {
"body": "@Override\n public FluentListAssert isEmpty() {\n return hasSize(0);\n }",
"class_method_signature": "FluentListAssert.isEmpty()",
"constructor": false,
"full_signature": "@Override public FluentListAssert isEmpty()",
"identifier": "isEmpty",
"invocations": [
"hasSize"
],
"mo... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_507 | {
"fields": [
{
"declarator": "fluentControlWait",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentWait fluentControlWait;",
"type": "FluentWait",
"var_name": "fluentControlWait"
},
{
"declarator": "fluentWebElement",
"modifier": "@M... | {
"body": "@Test\n public void untilElementSupplier() {\n Supplier<? extends FluentWebElement> selector = mock(Supplier.class);\n\n wait.untilElement(selector);\n Mockito.verify(fluentControlWait).untilElement(selector);\n }",
"class_method_signature": "FluentWaitElementTest.untilElementS... | {
"fields": [
{
"declarator": "element",
"modifier": "private final",
"original_string": "private final FluentWebElement element;",
"type": "FluentWebElement",
"var_name": "element"
},
{
"declarator": "controlWait",
"modifier": "private final",
"original_str... | {
"body": "@Override\n public FluentConditions untilElement(Supplier<? extends FluentWebElement> selector) {\n return controlWait.untilElement(selector);\n }",
"class_method_signature": "FluentWaitElement.untilElement(Supplier<? extends FluentWebElement> selector)",
"constructor": false,
"full_sign... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_157 | {
"fields": [
{
"declarator": "DRIVER_LIFECYCLE = \"driverLifecycle\"",
"modifier": "private static final",
"original_string": "private static final String DRIVER_LIFECYCLE = \"driverLifecycle\";",
"type": "String",
"var_name": "DRIVER_LIFECYCLE"
},
{
"declarator": "ret... | {
"body": "@Test\n public void baseUrl() {\n assertThat(getConfiguration().getBaseUrl()).isNull();\n\n mockProperty(\"baseUrl\", \"http://localhost:3000\");\n assertThat(getConfiguration().getBaseUrl()).isEqualTo(\"http://localhost:3000\");\n }",
"class_method_signature": "PropertiesBacke... | {
"fields": [
{
"declarator": "PROPERTIES_PREFIX = \"fluentlenium.\"",
"modifier": "static final",
"original_string": "static final String PROPERTIES_PREFIX = \"fluentlenium.\";",
"type": "String",
"var_name": "PROPERTIES_PREFIX"
},
{
"declarator": "prefixes",
"mo... | {
"body": "@Override\n public String getBaseUrl() {\n return getStringProperty(\"baseUrl\");\n }",
"class_method_signature": "PropertiesBackendConfiguration.getBaseUrl()",
"constructor": false,
"full_signature": "@Override public String getBaseUrl()",
"identifier": "getBaseUrl",
"invocations": ... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_442 | {
"fields": [],
"file": "fluentlenium-core/src/test/java/org/fluentlenium/core/filter/matcher/CalculateServiceTest.java",
"identifier": "CalculateServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void checkPatternContainsNok() {\n assertThat(CalculateService.contains(Pattern.compile(\"[ta]*]\"), null, \"tot\")).isFalse();\n }",
"class_method_signature": "CalculateServiceTest.checkPatternContainsNok()",
"constructor": false,
"full_signature": "@Test public void chec... | {
"fields": [],
"file": "fluentlenium-core/src/main/java/org/fluentlenium/core/filter/matcher/CalculateService.java",
"identifier": "CalculateService",
"interfaces": "",
"methods": [
{
"class_method_signature": "CalculateService.CalculateService()",
"constructor": true,
"full_signature":... | {
"body": "public static boolean contains(Pattern patternValue, String referenceValue, String currentValue) {\n if (currentValue == null) {\n return false;\n }\n if (patternValue == null) {\n return currentValue.contains(referenceValue);\n }\n return patternVal... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_287 | {
"fields": [],
"file": "fluentlenium-core/src/test/java/org/fluentlenium/core/url/UrlTemplateTest.java",
"identifier": "UrlTemplateTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testParseParametersFromPathAndQueryParameters() {\n UrlTemplate urlParametersTemplate = new UrlTemplate(\"/abc/{param1}?param2={param2}¶m3={param3}\");\n assertThat(getParameterNames(urlParametersTemplate)).containsExactly(\"param1\", \"param2\", \"param3\");\n ... | {
"fields": [
{
"declarator": "PARAM_REGEX = Pattern.compile(\"\\\\{(.+?)\\\\}\")",
"modifier": "private static final",
"original_string": "private static final Pattern PARAM_REGEX = Pattern.compile(\"\\\\{(.+?)\\\\}\");",
"type": "Pattern",
"var_name": "PARAM_REGEX"
},
{
... | {
"body": "public ParsedUrlTemplate parse(String input) {\n String noQueryInput;\n List<NameValuePair> queryParameters;\n\n try {\n URIBuilder uriBuilder = new URIBuilder(input);\n queryParameters = uriBuilder.getQueryParams();\n uriBuilder.setCustomQuery(null);\n... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_81 | {
"fields": [
{
"declarator": "alert",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private AlertImpl alert;",
"type": "AlertImpl",
"var_name": "alert"
},
{
"declarator": "alertAssert",
"modifier": "private",
"original_string": "private A... | {
"body": "@Test\n public void testHasTextPositive() {\n when(alert.getText()).thenReturn(\"some text\");\n assertThatCode(() -> alertAssert.hasText(\"some text\")).doesNotThrowAnyException();\n }",
"class_method_signature": "AlertAssertTest.testHasTextPositive()",
"constructor": false,
"ful... | {
"fields": [],
"file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/AlertAssert.java",
"identifier": "AlertAssert",
"interfaces": "implements AlertStateAssert",
"methods": [
{
"class_method_signature": "AlertAssert.AlertAssert(AlertImpl actual)",
"constructor": true,
... | {
"body": "@Override\n public AlertStateAssert hasText(String text) {\n try {\n String actualText = actual.getText();\n if (!actualText.contains(text)) {\n failWithMessage(\n \"The alert box does not contain the text: \" + text + \". Actual text fo... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_638 | {
"fields": [
{
"declarator": "driver",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private WebDriver driver;",
"type": "WebDriver",
"var_name": "driver"
},
{
"declarator": "searchContext",
"modifier": "@Mock\n private",
"original_str... | {
"body": "@Test\n public void findPostSelectorFilterWithElementThatMatch() {\n String name = \"cssStyle\";\n AttributeFilter[] filters = new AttributeFilter[]{filter1};\n when(filter1.isCssFilterSupported()).thenReturn(false);\n when(filter1.applyFilter(anyCollection())).thenAnswer((An... | {
"fields": [
{
"declarator": "searchContext",
"modifier": "private final",
"original_string": "private final SearchContext searchContext;",
"type": "SearchContext",
"var_name": "searchContext"
},
{
"declarator": "container",
"modifier": "private final",
"or... | {
"body": "@Override\n public FluentList<FluentWebElement> find(String selector, SearchFilter... filters) {\n StringBuilder stringBuilder = new StringBuilder(selector);\n List<SearchFilter> postFilterSelector = new ArrayList<>();\n if (filters != null && filters.length > 0) {\n for ... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_268 | {
"fields": [
{
"declarator": "componentsManager",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private ComponentsManager componentsManager;",
"type": "ComponentsManager",
"var_name": "componentsManager"
},
{
"declarator": "validator",
"modifie... | {
"body": "@Test\n public void shouldReturnFalseIfFieldIsNotListForListOfFluentWebElement() throws NoSuchFieldException {\n Field notListField = getField(\"webElement\");\n\n assertThat(FluentElementInjectionSupportValidator.isListOfFluentWebElement(notListField)).isFalse();\n }",
"class_method_... | {
"fields": [
{
"declarator": "componentsManager",
"modifier": "private final",
"original_string": "private final ComponentsManager componentsManager;",
"type": "ComponentsManager",
"var_name": "componentsManager"
}
],
"file": "fluentlenium-core/src/main/java/org/fluentlenium... | {
"body": "static boolean isListOfFluentWebElement(Field field) {\n return isFieldListOf(field, FluentWebElement.class::isAssignableFrom);\n }",
"class_method_signature": "FluentElementInjectionSupportValidator.isListOfFluentWebElement(Field field)",
"constructor": false,
"full_signature": "static boo... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_141 | {
"fields": [
{
"declarator": "fluentList",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentList<FluentWebElement> fluentList;",
"type": "FluentList<FluentWebElement>",
"var_name": "fluentList"
},
{
"declarator": "listAssert",
"modif... | {
"body": "@Test\n public void shouldFailWhenHasAttribute() {\n when(fluentList.attributes(\"name\")).thenReturn(Lists.newArrayList(\"name-one\", \"name-two\"));\n assertThatAssertionErrorIsThrownBy(() -> listAssert.hasNotAttribute(\"name\"))\n .hasMessage(\"At least one selected eleme... | {
"fields": [],
"file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentListAssert.java",
"identifier": "FluentListAssert",
"interfaces": "implements ListStateAssert, ListAttributeAssert",
"methods": [
{
"class_method_signature": "FluentListAssert.FluentListAssert(FluentLis... | {
"body": "@Override\n public FluentListAssert hasNotAttribute(String attribute) {\n List<String> actualValues = requiresNonEmpty(actual.attributes(attribute));\n if (actualValues.stream().anyMatch(Objects::nonNull)) {\n failWithMessage(\"At least one selected element has attribute \" + at... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_511 | {
"fields": [
{
"declarator": "fluentControlWait",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentWait fluentControlWait;",
"type": "FluentWait",
"var_name": "fluentControlWait"
},
{
"declarator": "fluentWebElement",
"modifier": "@M... | {
"body": "@Test\n public void untilPage() {\n wait.untilPage();\n Mockito.verify(fluentControlWait).untilPage();\n }",
"class_method_signature": "FluentWaitElementTest.untilPage()",
"constructor": false,
"full_signature": "@Test public void untilPage()",
"identifier": "untilPage",
"invo... | {
"fields": [
{
"declarator": "element",
"modifier": "private final",
"original_string": "private final FluentWebElement element;",
"type": "FluentWebElement",
"var_name": "element"
},
{
"declarator": "controlWait",
"modifier": "private final",
"original_str... | {
"body": "@Override\n public FluentWaitPageConditions untilPage() {\n return controlWait.untilPage();\n }",
"class_method_signature": "FluentWaitElement.untilPage()",
"constructor": false,
"full_signature": "@Override public FluentWaitPageConditions untilPage()",
"identifier": "untilPage",
"in... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_454 | {
"fields": [],
"file": "fluentlenium-core/src/test/java/org/fluentlenium/core/filter/matcher/StartsWithMatcherTest.java",
"identifier": "StartsWithMatcherTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void shouldStartWithString() {\n StartsWithMatcher matcher = new StartsWithMatcher(\"some va\");\n\n assertThat(matcher.isSatisfiedBy(\"some value\")).isTrue();\n }",
"class_method_signature": "StartsWithMatcherTest.shouldStartWithString()",
"constructor": false,
"f... | {
"fields": [],
"file": "fluentlenium-core/src/main/java/org/fluentlenium/core/filter/matcher/StartsWithMatcher.java",
"identifier": "StartsWithMatcher",
"interfaces": "",
"methods": [
{
"class_method_signature": "StartsWithMatcher.StartsWithMatcher(String value)",
"constructor": true,
"... | {
"body": "@Override\n public boolean isSatisfiedBy(String currentValue) {\n return CalculateService.startsWith(getPattern(), getValue(), currentValue);\n }",
"class_method_signature": "StartsWithMatcher.isSatisfiedBy(String currentValue)",
"constructor": false,
"full_signature": "@Override public ... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_39 | {
"fields": [
{
"declarator": "element",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentWebElement element;",
"type": "FluentWebElement",
"var_name": "element"
},
{
"declarator": "elementAssert",
"modifier": "private",
"origin... | {
"body": "@Test\n public void testHasDimensionKo() {\n when(element.size()).thenReturn(new Dimension(2, 1));\n assertThatAssertionErrorIsThrownBy(() -> elementAssert.hasDimension(new Dimension(1, 2)))\n .hasMessage(\"The element does not have the same size: (1, 2). Actual size found :... | {
"fields": [],
"file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentWebElementAssert.java",
"identifier": "FluentWebElementAssert",
"interfaces": "implements ElementStateAssert, ElementAttributeAssert",
"methods": [
{
"class_method_signature": "FluentWebElementAssert.Fl... | {
"body": "@Override\n public FluentWebElementAssert hasDimension(Dimension dimension) {\n Dimension actualSize = actual.size();\n if (!actualSize.equals(dimension)) {\n failWithMessage(\"The element does not have the same size: \" + dimension.toString()\n + \". Actual s... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_395 | {
"fields": [
{
"declarator": "webElement1",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private WebElement webElement1;",
"type": "WebElement",
"var_name": "webElement1"
},
{
"declarator": "webElement3",
"modifier": "@Mock\n private",
... | {
"body": "@Test\n public void shouldApplyFilter() {\n when(webElement1.isSelected()).thenReturn(true);\n when(webElement3.isSelected()).thenReturn(true);\n\n FluentWebElement fluentWebElem1 = new FluentWebElement(webElement1, control, instantiator);\n FluentWebElement fluentWebElem2 = ... | {
"fields": [
{
"declarator": "predicate",
"modifier": "private final",
"original_string": "private final Predicate<FluentWebElement> predicate;",
"type": "Predicate<FluentWebElement>",
"var_name": "predicate"
}
],
"file": "fluentlenium-core/src/main/java/org/fluentlenium/cor... | {
"body": "@Override\n public Collection<FluentWebElement> applyFilter(Collection<FluentWebElement> elements) {\n return elements.stream().filter(predicate).collect(Collectors.toList());\n }",
"class_method_signature": "PredicateFilter.applyFilter(Collection<FluentWebElement> elements)",
"constructor... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_546 | {
"fields": [
{
"declarator": "keyboard",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private Keyboard keyboard;",
"type": "Keyboard",
"var_name": "keyboard"
},
{
"declarator": "mouse",
"modifier": "@Mock\n private",
"original_string"... | {
"body": "@Test\n public void testRelease() {\n MouseActions actions = new MouseActions(driver);\n actions.release();\n\n verify(mouse, never()).mouseMove(any(Coordinates.class));\n verify(mouse).mouseUp(any());\n }",
"class_method_signature": "MouseActionsTest.testRelease()",
"... | {
"fields": [
{
"declarator": "driver",
"modifier": "private final",
"original_string": "private final WebDriver driver;",
"type": "WebDriver",
"var_name": "driver"
}
],
"file": "fluentlenium-core/src/main/java/org/fluentlenium/core/action/MouseActions.java",
"identifier": ... | {
"body": "public MouseActions release() {\n actions().release().perform();\n return this;\n }",
"class_method_signature": "MouseActions.release()",
"constructor": false,
"full_signature": "public MouseActions release()",
"identifier": "release",
"invocations": [
"perform",
"release... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_116 | {
"fields": [
{
"declarator": "fluentList",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentList<FluentWebElement> fluentList;",
"type": "FluentList<FluentWebElement>",
"var_name": "fluentList"
},
{
"declarator": "listAssert",
"modif... | {
"body": "@Test\n public void testHasNameKo() {\n when(fluentList.names()).thenReturn(Lists.newArrayList(\"name-one\", \"name-two\"));\n assertThatAssertionErrorIsThrownBy(() -> listAssert.hasName(\"name-three\"))\n .hasMessage(\"No selected elements have name: name-three. Actual name... | {
"fields": [],
"file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentListAssert.java",
"identifier": "FluentListAssert",
"interfaces": "implements ListStateAssert, ListAttributeAssert",
"methods": [
{
"class_method_signature": "FluentListAssert.FluentListAssert(FluentLis... | {
"body": "@Override\n public FluentListAssert hasName(String name) {\n List<String> actualNames = requiresNonEmpty(actual.names());\n if (!actualNames.contains(name)) {\n failWithMessage(\"No selected elements have name: \" + name\n + \". Actual names found : \" + actua... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_403 | {
"fields": [
{
"declarator": "A_VALUE = \"value\"",
"modifier": "private static final",
"original_string": "private static final String A_VALUE = \"value\";",
"type": "String",
"var_name": "A_VALUE"
},
{
"declarator": "A_REGEX_VALUE = \"regex.*\"",
"modifier": "p... | {
"body": "@Test\n public void shouldSupportCssFilter() {\n AbstractMatcher matcher = new EqualMatcher(A_VALUE);\n AttributeFilter attributeFilter = new AttributeFilter(\"id\", matcher);\n\n assertThat(attributeFilter.isCssFilterSupported()).isTrue();\n }",
"class_method_signature": "Attr... | {
"fields": [
{
"declarator": "attributeName",
"modifier": "private final",
"original_string": "private final String attributeName;",
"type": "String",
"var_name": "attributeName"
},
{
"declarator": "matcher",
"modifier": "private final",
"original_string": ... | {
"body": "@Override\n public boolean isCssFilterSupported() {\n return matcher != null\n && matcher.isCssFilterSupported()\n && !\"text\".equalsIgnoreCase(getAttribute())\n && !\"textContent\".equalsIgnoreCase(getAttribute());\n }",
"class_method_signature": "Attribute... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_244 | {
"fields": [],
"file": "fluentlenium-core/src/test/java/org/fluentlenium/core/inject/LabelAnnotationsTest.java",
"identifier": "LabelAnnotationsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void shouldSetLabelValueFromLabelAnnotation() throws NoSuchFieldException {\n LabelAnnotations labelAnnotations = createLabelAnnotationsForField(\"fieldWithLabel\");\n\n assertThat(labelAnnotations.getLabel()).isEqualTo(\"a label value\");\n }",
"class_method_signature"... | {
"fields": [
{
"declarator": "label",
"modifier": "private",
"original_string": "private String label;",
"type": "String",
"var_name": "label"
},
{
"declarator": "labelHints",
"modifier": "private",
"original_string": "private String[] labelHints;",
"... | {
"body": "@Override\n public String getLabel() {\n return label;\n }",
"class_method_signature": "LabelAnnotations.getLabel()",
"constructor": false,
"full_signature": "@Override public String getLabel()",
"identifier": "getLabel",
"invocations": [],
"modifiers": "@Override public",
"param... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_614 | {
"fields": [
{
"declarator": "element",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private LocatableElement element;",
"type": "LocatableElement",
"var_name": "element"
},
{
"declarator": "driver",
"modifier": "@Mock\n private",
"or... | {
"body": "@Test\n public void testGetValue() {\n when(element.getAttribute(\"value\")).thenReturn(\"test\");\n assertThat(fluentElement.value()).isEqualTo(\"test\");\n }",
"class_method_signature": "FluentWebElementTest.testGetValue()",
"constructor": false,
"full_signature": "@Test public ... | {
"fields": [
{
"declarator": "search",
"modifier": "private final",
"original_string": "private final Search search;",
"type": "Search",
"var_name": "search"
},
{
"declarator": "dom",
"modifier": "private final",
"original_string": "private final Dom dom;",... | {
"body": "public String value() {\n return webElement.getAttribute(\"value\");\n }",
"class_method_signature": "FluentWebElement.value()",
"constructor": false,
"full_signature": "public String value()",
"identifier": "value",
"invocations": [
"getAttribute"
],
"modifiers": "public",
"p... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_42 | {
"fields": [
{
"declarator": "element",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentWebElement element;",
"type": "FluentWebElement",
"var_name": "element"
},
{
"declarator": "elementAssert",
"modifier": "private",
"origin... | {
"body": "@Test\n public void shouldNotHaveClass() {\n when(element.attribute(\"class\")).thenReturn(\"clazz other-clazz\");\n elementAssert.hasNotClass(\"not-class\");\n }",
"class_method_signature": "FluentWebElementAssertTest.shouldNotHaveClass()",
"constructor": false,
"full_signature":... | {
"fields": [],
"file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentWebElementAssert.java",
"identifier": "FluentWebElementAssert",
"interfaces": "implements ElementStateAssert, ElementAttributeAssert",
"methods": [
{
"class_method_signature": "FluentWebElementAssert.Fl... | {
"body": "@Override\n public FluentWebElementAssert hasNotClass(String htmlClass) {\n String actualClasses = actual.attribute(CLASS_ATTRIBUTE);\n if (actualClasses != null && getClasses(actualClasses).contains(htmlClass)) {\n failWithMessage(\"The element has class: \" + htmlClass);\n ... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_301 | {
"fields": [
{
"declarator": "LOAD_EVENT_END_SCRIPT = \"return window.performance.timing.loadEventEnd;\"",
"modifier": "private static final",
"original_string": "private static final String LOAD_EVENT_END_SCRIPT = \"return window.performance.timing.loadEventEnd;\";",
"type": "String",
... | {
"body": "@Test\n public void shouldReturnSecureConnectionStartAsLong() {\n when(((JavascriptExecutor) driver).executeScript(SECURE_CONNECTION_START_SCRIPT)).thenReturn(45L);\n when(((JavascriptExecutor) driver).executeScript(NAVIGATION_START_SCRIPT)).thenReturn(28L);\n\n assertThat(performan... | {
"fields": [
{
"declarator": "PERFORMANCE_TIMING_SCRIPT = \"return window.performance.timing;\"",
"modifier": "private static final",
"original_string": "private static final String PERFORMANCE_TIMING_SCRIPT = \"return window.performance.timing;\";",
"type": "String",
"var_name": "P... | {
"body": "@Override\n public Object secureConnectionStart() {\n Object secureConnectionStart = execute(scriptFor(SECURE_CONNECTION_START));\n if (secureConnectionStart instanceof Long) {\n secureConnectionStart = timePassedUntil(secureConnectionStart);\n }\n return secureCon... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_478 | {
"fields": [
{
"declarator": "fluentControlWait",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentWait fluentControlWait;",
"type": "FluentWait",
"var_name": "fluentControlWait"
},
{
"declarator": "fluentList",
"modifier": "@Mock\n ... | {
"body": "@Test\n public void untilElementsSupplier() {\n Supplier<? extends List<? extends FluentWebElement>> selector = mock(Supplier.class);\n\n wait.untilElements(selector);\n Mockito.verify(fluentControlWait).untilElements(selector);\n }",
"class_method_signature": "FluentWaitElemen... | {
"fields": [
{
"declarator": "elements",
"modifier": "private final",
"original_string": "private final List<? extends FluentWebElement> elements;",
"type": "List<? extends FluentWebElement>",
"var_name": "elements"
},
{
"declarator": "controlWait",
"modifier": "... | {
"body": "@Override\n public FluentListConditions untilElements(Supplier<? extends List<? extends FluentWebElement>> selector) {\n return controlWait.untilElements(selector);\n }",
"class_method_signature": "FluentWaitElementList.untilElements(Supplier<? extends List<? extends FluentWebElement>> selec... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_182 | {
"fields": [
{
"declarator": "configuration",
"modifier": "private static",
"original_string": "private static AnnotationConfiguration configuration;",
"type": "AnnotationConfiguration",
"var_name": "configuration"
},
{
"declarator": "defaultConfiguration",
"modi... | {
"body": "@Test\n public void desiredCapabilities() {\n DesiredCapabilities capabilities = DesiredCapabilities.firefox();\n Assertions.assertThat(desiredCapabilitiesConfiguration.getCapabilities()).isEqualTo(capabilities);\n\n DesiredCapabilities differentCapabilities = DesiredCapabilities.ch... | {
"fields": [
{
"declarator": "configuration",
"modifier": "private final",
"original_string": "private final FluentConfiguration configuration;",
"type": "FluentConfiguration",
"var_name": "configuration"
},
{
"declarator": "customProperties = new HashMap<>()",
"... | {
"body": "@Override\n public Capabilities getCapabilities() {\n return getConfig(() -> getCapabilitiesValue(configuration.capabilities()));\n }",
"class_method_signature": "AnnotationConfiguration.getCapabilities()",
"constructor": false,
"full_signature": "@Override public Capabilities getCapabil... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_497 | {
"fields": [
{
"declarator": "fluentControlWait",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentWait fluentControlWait;",
"type": "FluentWait",
"var_name": "fluentControlWait"
},
{
"declarator": "fluentWebElement",
"modifier": "@M... | {
"body": "@Test\n public void ignoreAll() {\n Collection<Class<? extends Throwable>> classes = new ArrayList<>();\n\n assertThat(wait.ignoreAll(classes)).isSameAs(wait);\n Mockito.verify(fluentControlWait).ignoreAll(classes);\n }",
"class_method_signature": "FluentWaitElementTest.ignoreA... | {
"fields": [
{
"declarator": "element",
"modifier": "private final",
"original_string": "private final FluentWebElement element;",
"type": "FluentWebElement",
"var_name": "element"
},
{
"declarator": "controlWait",
"modifier": "private final",
"original_str... | {
"body": "@Override\n public FluentWaitElement ignoreAll(Collection<Class<? extends Throwable>> types) {\n controlWait.ignoreAll(types);\n return this;\n }",
"class_method_signature": "FluentWaitElement.ignoreAll(Collection<Class<? extends Throwable>> types)",
"constructor": false,
"full_si... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_643 | {
"fields": [
{
"declarator": "driver",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private WebDriver driver;",
"type": "WebDriver",
"var_name": "driver"
},
{
"declarator": "searchContext",
"modifier": "@Mock\n private",
"original_str... | {
"body": "@Test\n public void shouldThrowErrorWhen$ListMobileElementNotFound() {\n assertThatThrownBy(() -> search.$(MobileBy.id(\"something\")).first().text())\n .isInstanceOf(NoSuchElementException.class)\n .hasMessageContaining(\"By.id\")\n .hasMessageContain... | {
"fields": [
{
"declarator": "searchContext",
"modifier": "private final",
"original_string": "private final SearchContext searchContext;",
"type": "SearchContext",
"var_name": "searchContext"
},
{
"declarator": "container",
"modifier": "private final",
"or... | {
"body": "public Search(SearchContext context, Object container, ComponentInstantiator instantiator,\n FluentInjectControl injectControl) {\n searchContext = context;\n this.container = container;\n this.instantiator = instantiator;\n this.injectControl = injectControl;\n }"... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_213 | {
"fields": [
{
"declarator": "configuration",
"modifier": "private",
"original_string": "private ProgrammaticConfiguration configuration;",
"type": "ProgrammaticConfiguration",
"var_name": "configuration"
},
{
"declarator": "configurationProperties1",
"modifier":... | {
"body": "@Test\n public void screenshotPath() {\n testImpl(ConfigurationProperties::getScreenshotPath, input -> {\n composed.setScreenshotPath(input);\n return null;\n }, null, \"firefox\", \"chrome\");\n }",
"class_method_signature": "ComposedConfigurationTest.screenshot... | {
"fields": [
{
"declarator": "configurations",
"modifier": "private final",
"original_string": "private final ConfigurationProperties[] configurations;",
"type": "ConfigurationProperties[]",
"var_name": "configurations"
},
{
"declarator": "writableConfiguration",
... | {
"body": "@Override\n public void setScreenshotPath(String screenshotPath) {\n getWritableConfiguration().setScreenshotPath(screenshotPath);\n }",
"class_method_signature": "ComposedConfiguration.setScreenshotPath(String screenshotPath)",
"constructor": false,
"full_signature": "@Override public v... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_9 | {
"fields": [
{
"declarator": "element",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentWebElement element;",
"type": "FluentWebElement",
"var_name": "element"
},
{
"declarator": "elementAssert",
"modifier": "private",
"origin... | {
"body": "@Test\n public void testIsNotClickableOk() {\n when(element.present()).thenReturn(true);\n when(element.clickable()).thenReturn(false);\n elementAssert.isNotClickable();\n }",
"class_method_signature": "FluentWebElementAssertTest.testIsNotClickableOk()",
"constructor": false,... | {
"fields": [],
"file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentWebElementAssert.java",
"identifier": "FluentWebElementAssert",
"interfaces": "implements ElementStateAssert, ElementAttributeAssert",
"methods": [
{
"class_method_signature": "FluentWebElementAssert.Fl... | {
"body": "@Override\n public FluentWebElementAssert isNotClickable() {\n isPresentAndIs(() -> actual.clickable(), \"Element in assertion is present but clickable\");\n return this;\n }",
"class_method_signature": "FluentWebElementAssert.isNotClickable()",
"constructor": false,
"full_signatu... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_356 | {
"fields": [],
"file": "fluentlenium-core/src/test/java/org/fluentlenium/core/conditions/StringConditionsImplTest.java",
"identifier": "StringConditionsImplTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void shouldReturnFalseForEndsWithIfTargetStringIsNull() {\n StringConditions stringConditions = new StringConditionsImpl(null);\n\n assertThat(stringConditions.endsWith(\"magical\")).isFalse();\n }",
"class_method_signature": "StringConditionsImplTest.shouldReturnFalseF... | {
"fields": [],
"file": "fluentlenium-core/src/main/java/org/fluentlenium/core/conditions/StringConditionsImpl.java",
"identifier": "StringConditionsImpl",
"interfaces": "implements StringConditions",
"methods": [
{
"class_method_signature": "StringConditionsImpl.StringConditionsImpl(String string)"... | {
"body": "@Override\n public boolean endsWith(String suffix) {\n return verify(input -> {\n if (input == null) {\n return false;\n }\n return input.endsWith(suffix);\n });\n }",
"class_method_signature": "StringConditionsImpl.endsWith(String suffi... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_15 | {
"fields": [
{
"declarator": "element",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentWebElement element;",
"type": "FluentWebElement",
"var_name": "element"
},
{
"declarator": "elementAssert",
"modifier": "private",
"origin... | {
"body": "@Test\n public void testIsDisplayedOk() {\n when(element.present()).thenReturn(true);\n when(element.displayed()).thenReturn(true);\n elementAssert.isDisplayed();\n }",
"class_method_signature": "FluentWebElementAssertTest.testIsDisplayedOk()",
"constructor": false,
"full_s... | {
"fields": [],
"file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentWebElementAssert.java",
"identifier": "FluentWebElementAssert",
"interfaces": "implements ElementStateAssert, ElementAttributeAssert",
"methods": [
{
"class_method_signature": "FluentWebElementAssert.Fl... | {
"body": "@Override\n public FluentWebElementAssert isDisplayed() {\n isPresentAndIs(() -> !actual.displayed(), \"Element in assertion is present but not displayed\");\n return this;\n }",
"class_method_signature": "FluentWebElementAssert.isDisplayed()",
"constructor": false,
"full_signatur... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_585 | {
"fields": [
{
"declarator": "element1",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentWebElement element1;",
"type": "FluentWebElement",
"var_name": "element1"
},
{
"declarator": "element2",
"modifier": "@Mock\n private",
... | {
"body": "@Test\n public void testContextClick() {\n when(element2.conditions().clickable()).thenReturn(true);\n when(element3.conditions().clickable()).thenReturn(true);\n\n list.contextClick();\n\n verify(element1, never()).contextClick();\n verify(element2).contextClick();\n ... | {
"fields": [
{
"declarator": "DEFAULT_WAIT_AND_CLICK_DURATION = Duration.ofSeconds(5)",
"modifier": "private static final",
"original_string": "private static final Duration DEFAULT_WAIT_AND_CLICK_DURATION = Duration.ofSeconds(5);",
"type": "Duration",
"var_name": "DEFAULT_WAIT_AND_... | {
"body": "@Override\n public FluentList<E> contextClick() {\n return doClick(FluentWebElement::contextClick, \"context click\");\n }",
"class_method_signature": "FluentListImpl.contextClick()",
"constructor": false,
"full_signature": "@Override public FluentList<E> contextClick()",
"identifier":... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_205 | {
"fields": [
{
"declarator": "configuration",
"modifier": "private",
"original_string": "private ProgrammaticConfiguration configuration;",
"type": "ProgrammaticConfiguration",
"var_name": "configuration"
},
{
"declarator": "configurationProperties1",
"modifier":... | {
"body": "@Test\n public void remoteUrl() {\n testImpl(ConfigurationProperties::getRemoteUrl, input -> {\n composed.setRemoteUrl(input);\n return null;\n }, null, \"http://localhost:4444\", \"http://localhost:7777\");\n }",
"class_method_signature": "ComposedConfigurationT... | {
"fields": [
{
"declarator": "configurations",
"modifier": "private final",
"original_string": "private final ConfigurationProperties[] configurations;",
"type": "ConfigurationProperties[]",
"var_name": "configurations"
},
{
"declarator": "writableConfiguration",
... | {
"body": "@Override\n public void setRemoteUrl(String remoteUrl) {\n getWritableConfiguration().setRemoteUrl(remoteUrl);\n }",
"class_method_signature": "ComposedConfiguration.setRemoteUrl(String remoteUrl)",
"constructor": false,
"full_signature": "@Override public void setRemoteUrl(String remote... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_655 | {
"fields": [
{
"declarator": "webDriver",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private WebDriver webDriver;",
"type": "WebDriver",
"var_name": "webDriver"
},
{
"declarator": "configuration",
"modifier": "@Mock\n private",
"ori... | {
"body": "@Test\n public void shouldFailGoToUrlWhenNoUrlIsPresent() {\n fluentDriver = spy(new FluentDriver(webDriver, configuration, adapter));\n\n assertThatIllegalArgumentException().isThrownBy(() -> fluentDriver.goTo((String) null))\n .withMessage(\"It ... | {
"fields": [
{
"declarator": "LOGGER =\n LoggerFactory.getLogger(FluentDriver.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER =\n LoggerFactory.getLogger(FluentDriver.class);",
"type": "Logger",
"var_name": "L... | {
"body": "@Override\n public <P extends FluentPage> P goTo(P page) {\n checkArgument(page, \"It is required to specify an instance of FluentPage for navigation.\");\n page.go();\n return page;\n }",
"class_method_signature": "FluentDriver.goTo(P page)",
"constructor": false,
"full_si... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_340 | {
"fields": [
{
"declarator": "locatorHandler",
"modifier": "private",
"original_string": "private TestLocatorHandler locatorHandler;",
"type": "TestLocatorHandler",
"var_name": "locatorHandler"
},
{
"declarator": "locator",
"modifier": "@Mock\n private",
... | {
"body": "@Test\n public void shouldReturnFalseInCaseOfNoSuchElementException() {\n TestLocatorHandler handler = spy(new TestLocatorHandler(mock(ElementLocator.class)));\n\n doThrow(NoSuchElementException.class).when(handler).now();\n\n assertThat(handler.present()).isFalse();\n }",
"cla... | {
"fields": [
{
"declarator": "DEFAULT_LAZY_ELEMENT_TO_STRING = \"Lazy Element\"",
"modifier": "private static final",
"original_string": "private static final String DEFAULT_LAZY_ELEMENT_TO_STRING = \"Lazy Element\";",
"type": "String",
"var_name": "DEFAULT_LAZY_ELEMENT_TO_STRING"
... | {
"body": "@Override\n public boolean present() {\n try {\n now();\n } catch (TimeoutException | NoSuchElementException | StaleElementReferenceException e) {\n return false;\n }\n return loaded() && !isStale();\n }",
"class_method_signature": "AbstractLocatorH... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_439 | {
"fields": [],
"file": "fluentlenium-core/src/test/java/org/fluentlenium/core/filter/matcher/CalculateServiceTest.java",
"identifier": "CalculateServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void checkSimpleContainsReturnsFalseIfCurrentValueIsNull() {\n assertThat(CalculateService.contains(Pattern.compile(\".*\"), \"to\", null)).isFalse();\n }",
"class_method_signature": "CalculateServiceTest.checkSimpleContainsReturnsFalseIfCurrentValueIsNull()",
"constructor":... | {
"fields": [],
"file": "fluentlenium-core/src/main/java/org/fluentlenium/core/filter/matcher/CalculateService.java",
"identifier": "CalculateService",
"interfaces": "",
"methods": [
{
"class_method_signature": "CalculateService.CalculateService()",
"constructor": true,
"full_signature":... | {
"body": "public static boolean contains(Pattern patternValue, String referenceValue, String currentValue) {\n if (currentValue == null) {\n return false;\n }\n if (patternValue == null) {\n return currentValue.contains(referenceValue);\n }\n return patternVal... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_593 | {
"fields": [
{
"declarator": "element1",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentWebElement element1;",
"type": "FluentWebElement",
"var_name": "element1"
},
{
"declarator": "element2",
"modifier": "@Mock\n private",
... | {
"body": "@Test\n public void testFind() {\n FluentWebElement ret1 = mock(FluentWebElement.class);\n FluentWebElement ret2 = mock(FluentWebElement.class);\n FluentWebElement ret3 = mock(FluentWebElement.class);\n\n when(element1.find()).thenReturn(fluentAdapter.newFluentList(ret1));\n ... | {
"fields": [
{
"declarator": "DEFAULT_WAIT_AND_CLICK_DURATION = Duration.ofSeconds(5)",
"modifier": "private static final",
"original_string": "private static final Duration DEFAULT_WAIT_AND_CLICK_DURATION = Duration.ofSeconds(5);",
"type": "Duration",
"var_name": "DEFAULT_WAIT_AND_... | {
"body": "@Override\n public FluentList<E> find(List<WebElement> rawElements) {\n return (FluentList<E>) control.find(rawElements);\n }",
"class_method_signature": "FluentListImpl.find(List<WebElement> rawElements)",
"constructor": false,
"full_signature": "@Override public FluentList<E> find(List... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_602 | {
"fields": [
{
"declarator": "element",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private LocatableElement element;",
"type": "LocatableElement",
"var_name": "element"
},
{
"declarator": "driver",
"modifier": "@Mock\n private",
"or... | {
"body": "@Test\n public void testKeyboard() {\n fluentElement.keyboard().sendKeys(\"ABC\");\n verify(keyboard).sendKeys(\"ABC\");\n }",
"class_method_signature": "FluentWebElementTest.testKeyboard()",
"constructor": false,
"full_signature": "@Test public void testKeyboard()",
"identifier... | {
"fields": [
{
"declarator": "search",
"modifier": "private final",
"original_string": "private final Search search;",
"type": "Search",
"var_name": "search"
},
{
"declarator": "dom",
"modifier": "private final",
"original_string": "private final Dom dom;",... | {
"body": "public KeyboardElementActions keyboard() {\n return keyboardActions;\n }",
"class_method_signature": "FluentWebElement.keyboard()",
"constructor": false,
"full_signature": "public KeyboardElementActions keyboard()",
"identifier": "keyboard",
"invocations": [],
"modifiers": "public",
... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_252 | {
"fields": [
{
"declarator": "css",
"modifier": "@FindBy(css = \"css\")\n private",
"original_string": "@FindBy(css = \"css\")\n private FluentWebElement css;",
"type": "FluentWebElement",
"var_name": "css"
},
{
"declarator": "xpath",
"modifier": "@FindBy(x... | {
"body": "@Test\n public void shouldInjectIosFindAllField() throws NoSuchFieldException {\n Field iosFindAllField = this.getClass().getDeclaredField(\"iosFindBys\");\n InjectionAnnotations annotations = new InjectionAnnotations(iosFindAllField, getIosCapablities());\n By by = annotations.buil... | {
"fields": [
{
"declarator": "classAnnotations",
"modifier": "private final",
"original_string": "private final ClassAnnotations classAnnotations;",
"type": "ClassAnnotations",
"var_name": "classAnnotations"
},
{
"declarator": "fieldAnnotations",
"modifier": "pri... | {
"body": "@Override\n public By buildBy() {\n if (mobileElement) {\n return defaultElementByBuilder.buildBy();\n }\n By fieldBy = fieldAnnotations.buildBy();\n By classBy = classAnnotations.buildBy();\n\n if (classBy != null && fieldBy instanceof ByIdOrName) {\n ... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_317 | {
"fields": [
{
"declarator": "webDriver",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private WebDriver webDriver;",
"type": "WebDriver",
"var_name": "webDriver"
},
{
"declarator": "element",
"modifier": "@Mock(extraInterfaces = Locatable.cla... | {
"body": "@Test\n public void testDelegatesElement() {\n hook.click();\n verify(element).click();\n }",
"class_method_signature": "BaseHookTest.testDelegatesElement()",
"constructor": false,
"full_signature": "@Test public void testDelegatesElement()",
"identifier": "testDelegatesElement"... | {
"fields": [
{
"declarator": "instantiator",
"modifier": "private final",
"original_string": "private final ComponentInstantiator instantiator;",
"type": "ComponentInstantiator",
"var_name": "instantiator"
},
{
"declarator": "locatorSupplier",
"modifier": "privat... | {
"body": "public void click() {\n getElement().click();\n }",
"class_method_signature": "BaseHook.click()",
"constructor": false,
"full_signature": "public void click()",
"identifier": "click",
"invocations": [
"click",
"getElement"
],
"modifiers": "public",
"parameters": "()",
"r... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_54 | {
"fields": [
{
"declarator": "element",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentWebElement element;",
"type": "FluentWebElement",
"var_name": "element"
},
{
"declarator": "elementAssert",
"modifier": "private",
"origin... | {
"body": "@Test\n public void shouldHaveTextMatching() {\n when(element.text()).thenReturn(\"There is a 5% increase\");\n elementAssert.hasTextMatching(\".*\\\\d%.*\");\n }",
"class_method_signature": "FluentWebElementAssertTest.shouldHaveTextMatching()",
"constructor": false,
"full_signatu... | {
"fields": [],
"file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentWebElementAssert.java",
"identifier": "FluentWebElementAssert",
"interfaces": "implements ElementStateAssert, ElementAttributeAssert",
"methods": [
{
"class_method_signature": "FluentWebElementAssert.Fl... | {
"body": "@Override\n public FluentWebElementAssert hasTextMatching(String regexToBeMatched) {\n String actualText = actual.text();\n if (!actualText.matches(regexToBeMatched)) {\n failWithMessage(\"The element does not match the regex: \" + regexToBeMatched\n + \". Act... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_194 | {
"fields": [
{
"declarator": "configuration",
"modifier": "private static",
"original_string": "private static AnnotationConfiguration configuration;",
"type": "AnnotationConfiguration",
"var_name": "configuration"
},
{
"declarator": "defaultConfiguration",
"modi... | {
"body": "@Test\n public void awaitAtMost() {\n Assertions.assertThat(noConfiguration.getAwaitAtMost()).isNull();\n Assertions.assertThat(defaultConfiguration.getAwaitAtMost()).isNull();\n\n Assertions.assertThat(configuration.getAwaitAtMost()).isEqualTo(100L);\n }",
"class_method_signat... | {
"fields": [
{
"declarator": "configuration",
"modifier": "private final",
"original_string": "private final FluentConfiguration configuration;",
"type": "FluentConfiguration",
"var_name": "configuration"
},
{
"declarator": "customProperties = new HashMap<>()",
"... | {
"body": "@Override\n public Long getAwaitAtMost() {\n return getConfig(() -> getLongValue(configuration.awaitAtMost()));\n }",
"class_method_signature": "AnnotationConfiguration.getAwaitAtMost()",
"constructor": false,
"full_signature": "@Override public Long getAwaitAtMost()",
"identifier": "g... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_481 | {
"fields": [
{
"declarator": "fluentControlWait",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentWait fluentControlWait;",
"type": "FluentWait",
"var_name": "fluentControlWait"
},
{
"declarator": "fluentList",
"modifier": "@Mock\n ... | {
"body": "@Test\n public void untilPage() {\n wait.untilPage();\n Mockito.verify(fluentControlWait).untilPage();\n }",
"class_method_signature": "FluentWaitElementListTest.untilPage()",
"constructor": false,
"full_signature": "@Test public void untilPage()",
"identifier": "untilPage",
"... | {
"fields": [
{
"declarator": "elements",
"modifier": "private final",
"original_string": "private final List<? extends FluentWebElement> elements;",
"type": "List<? extends FluentWebElement>",
"var_name": "elements"
},
{
"declarator": "controlWait",
"modifier": "... | {
"body": "@Override\n public FluentWaitPageConditions untilPage() {\n return controlWait.untilPage();\n }",
"class_method_signature": "FluentWaitElementList.untilPage()",
"constructor": false,
"full_signature": "@Override public FluentWaitPageConditions untilPage()",
"identifier": "untilPage",
... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_259 | {
"fields": [
{
"declarator": "componentsManager",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private ComponentsManager componentsManager;",
"type": "ComponentsManager",
"var_name": "componentsManager"
},
{
"declarator": "validator",
"modifie... | {
"body": "@Test\n public void shouldReturnFalseWhenFieldIsNotListOfComponent() throws NoSuchFieldException {\n when(componentsManager.isComponentClass(WebElement.class)).thenReturn(false);\n Field listOfWebElementsField = getField(\"listOfWebElements\");\n\n assertThat(validator.isListOfCompo... | {
"fields": [
{
"declarator": "componentsManager",
"modifier": "private final",
"original_string": "private final ComponentsManager componentsManager;",
"type": "ComponentsManager",
"var_name": "componentsManager"
}
],
"file": "fluentlenium-core/src/main/java/org/fluentlenium... | {
"body": "boolean isListOfComponent(Field field) {\n //Don't replace the predicate with a method reference\n return isFieldListOf(field, genericType -> componentsManager.isComponentClass(genericType));\n }",
"class_method_signature": "FluentElementInjectionSupportValidator.isListOfComponent(Field ... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_609 | {
"fields": [
{
"declarator": "element",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private LocatableElement element;",
"type": "LocatableElement",
"var_name": "element"
},
{
"declarator": "driver",
"modifier": "@Mock\n private",
"or... | {
"body": "@Test\n public void testGetAttribute() {\n when(element.getAttribute(\"attr\")).thenReturn(\"test\");\n assertThat(fluentElement.attribute(\"attr\")).isEqualTo(\"test\");\n }",
"class_method_signature": "FluentWebElementTest.testGetAttribute()",
"constructor": false,
"full_signatu... | {
"fields": [
{
"declarator": "search",
"modifier": "private final",
"original_string": "private final Search search;",
"type": "Search",
"var_name": "search"
},
{
"declarator": "dom",
"modifier": "private final",
"original_string": "private final Dom dom;",... | {
"body": "public String attribute(String name) {\n return webElement.getAttribute(name);\n }",
"class_method_signature": "FluentWebElement.attribute(String name)",
"constructor": false,
"full_signature": "public String attribute(String name)",
"identifier": "attribute",
"invocations": [
"getA... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_465 | {
"fields": [
{
"declarator": "fluentControlWait",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentWait fluentControlWait;",
"type": "FluentWait",
"var_name": "fluentControlWait"
},
{
"declarator": "fluentList",
"modifier": "@Mock\n ... | {
"body": "@Test\n public void pollingEveryDuration() {\n assertThat(wait.pollingEvery(Duration.ofMillis(10))).isSameAs(wait);\n Mockito.verify(fluentControlWait).pollingEvery(Duration.ofMillis(10));\n }",
"class_method_signature": "FluentWaitElementListTest.pollingEveryDuration()",
"construct... | {
"fields": [
{
"declarator": "elements",
"modifier": "private final",
"original_string": "private final List<? extends FluentWebElement> elements;",
"type": "List<? extends FluentWebElement>",
"var_name": "elements"
},
{
"declarator": "controlWait",
"modifier": "... | {
"body": "@Override\n public FluentWaitElementList pollingEvery(Duration duration) {\n controlWait.pollingEvery(duration);\n return this;\n }",
"class_method_signature": "FluentWaitElementList.pollingEvery(Duration duration)",
"constructor": false,
"full_signature": "@Override public Fluent... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_520 | {
"fields": [
{
"declarator": "driver",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private WebDriver driver;",
"type": "WebDriver",
"var_name": "driver"
},
{
"declarator": "element1",
"modifier": "@Mock\n private",
"original_string":... | {
"body": "@Test\n public void testFillList() {\n FluentList<FluentWebElement> list = instantiator.asFluentList(Arrays.asList(element1, element2, element3, element4));\n Fill fill = new Fill(list);\n\n when(element2.isDisplayed()).thenReturn(true);\n when(element2.isEnabled()).thenRetur... | {
"fields": [],
"file": "fluentlenium-core/src/main/java/org/fluentlenium/core/action/Fill.java",
"identifier": "Fill",
"interfaces": "",
"methods": [
{
"class_method_signature": "Fill.Fill(FluentList<E> list)",
"constructor": true,
"full_signature": "public Fill(FluentList<E> list)",
... | {
"body": "public Fill withText(String... textValues) {\n return with(textValues);\n }",
"class_method_signature": "Fill.withText(String... textValues)",
"constructor": false,
"full_signature": "public Fill withText(String... textValues)",
"identifier": "withText",
"invocations": [
"with"
],... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_170 | {
"fields": [
{
"declarator": "DRIVER_LIFECYCLE = \"driverLifecycle\"",
"modifier": "private static final",
"original_string": "private static final String DRIVER_LIFECYCLE = \"driverLifecycle\";",
"type": "String",
"var_name": "DRIVER_LIFECYCLE"
},
{
"declarator": "ret... | {
"body": "@Test\n public void driverLifecycleJvm() {\n assertThat(getConfiguration().getDriverLifecycle()).isNull();\n\n mockProperty(DRIVER_LIFECYCLE, \"jvm\");\n assertThat(getConfiguration().getDriverLifecycle()).isEqualTo(ConfigurationProperties.DriverLifecycle.JVM);\n }",
"class_met... | {
"fields": [
{
"declarator": "PROPERTIES_PREFIX = \"fluentlenium.\"",
"modifier": "static final",
"original_string": "static final String PROPERTIES_PREFIX = \"fluentlenium.\";",
"type": "String",
"var_name": "PROPERTIES_PREFIX"
},
{
"declarator": "prefixes",
"mo... | {
"body": "@Override\n public DriverLifecycle getDriverLifecycle() {\n return getEnumProperty(DriverLifecycle.class, \"driverLifecycle\");\n }",
"class_method_signature": "PropertiesBackendConfiguration.getDriverLifecycle()",
"constructor": false,
"full_signature": "@Override public DriverLifecycle... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_598 | {
"fields": [
{
"declarator": "element",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private LocatableElement element;",
"type": "LocatableElement",
"var_name": "element"
},
{
"declarator": "driver",
"modifier": "@Mock\n private",
"or... | {
"body": "@Test\n public void testHoverOver() {\n fluentElement.hoverOver();\n verify(mouse).mouseMove(any());\n }",
"class_method_signature": "FluentWebElementTest.testHoverOver()",
"constructor": false,
"full_signature": "@Test public void testHoverOver()",
"identifier": "testHoverOver"... | {
"fields": [
{
"declarator": "search",
"modifier": "private final",
"original_string": "private final Search search;",
"type": "Search",
"var_name": "search"
},
{
"declarator": "dom",
"modifier": "private final",
"original_string": "private final Dom dom;",... | {
"body": "@Override\n public FluentWebElement hoverOver() {\n mouse().moveToElement();\n return this;\n }",
"class_method_signature": "FluentWebElement.hoverOver()",
"constructor": false,
"full_signature": "@Override public FluentWebElement hoverOver()",
"identifier": "hoverOver",
"invo... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_432 | {
"fields": [],
"file": "fluentlenium-core/src/test/java/org/fluentlenium/core/filter/matcher/NotEndsWithMatcherTest.java",
"identifier": "NotEndsWithMatcherTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void shouldNotEndWithPattern() {\n NotEndsWithMatcher matcher = new NotEndsWithMatcher(Pattern.compile(\"value.*\"));\n\n assertThat(matcher.isSatisfiedBy(\"non-matching\")).isTrue();\n }",
"class_method_signature": "NotEndsWithMatcherTest.shouldNotEndWithPattern()",
... | {
"fields": [],
"file": "fluentlenium-core/src/main/java/org/fluentlenium/core/filter/matcher/NotEndsWithMatcher.java",
"identifier": "NotEndsWithMatcher",
"interfaces": "",
"methods": [
{
"class_method_signature": "NotEndsWithMatcher.NotEndsWithMatcher(String value)",
"constructor": true,
... | {
"body": "@Override\n public boolean isSatisfiedBy(String currentValue) {\n return !CalculateService.endsWith(getPattern(), getValue(), currentValue);\n }",
"class_method_signature": "NotEndsWithMatcher.isSatisfiedBy(String currentValue)",
"constructor": false,
"full_signature": "@Override public ... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_127 | {
"fields": [
{
"declarator": "fluentList",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentList<FluentWebElement> fluentList;",
"type": "FluentList<FluentWebElement>",
"var_name": "fluentList"
},
{
"declarator": "listAssert",
"modif... | {
"body": "@Test\n public void shouldFailHasClassesWhenNoElementHasClass() {\n when(fluentList.attributes(\"class\")).thenReturn(Lists.newArrayList(\"class1 class2\", \"class1 class2 class3\", \"class4\"));\n assertThatAssertionErrorIsThrownBy(() -> listAssert.hasClasses(\"class2\", \"class4\"))\n ... | {
"fields": [],
"file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentListAssert.java",
"identifier": "FluentListAssert",
"interfaces": "implements ListStateAssert, ListAttributeAssert",
"methods": [
{
"class_method_signature": "FluentListAssert.FluentListAssert(FluentLis... | {
"body": "@Override\n public FluentListAssert hasClasses(String... classesToFind) {\n return validateHasClasses(\"No selected element have classes: \", classesToFind);\n }",
"class_method_signature": "FluentListAssert.hasClasses(String... classesToFind)",
"constructor": false,
"full_signature": "@... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_577 | {
"fields": [
{
"declarator": "element1",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentWebElement element1;",
"type": "FluentWebElement",
"var_name": "element1"
},
{
"declarator": "element2",
"modifier": "@Mock\n private",
... | {
"body": "@Test\n public void shouldReturnTrueForPresentIfListSizeIsGreaterThanZeroWhenNoLocatorHandlerIsAvailableForProxy() {\n assertThat(list.present()).isTrue();\n }",
"class_method_signature": "FluentListImplTest.shouldReturnTrueForPresentIfListSizeIsGreaterThanZeroWhenNoLocatorHandlerIsAvailable... | {
"fields": [
{
"declarator": "DEFAULT_WAIT_AND_CLICK_DURATION = Duration.ofSeconds(5)",
"modifier": "private static final",
"original_string": "private static final Duration DEFAULT_WAIT_AND_CLICK_DURATION = Duration.ofSeconds(5);",
"type": "Duration",
"var_name": "DEFAULT_WAIT_AND_... | {
"body": "@Override\n public boolean present() {\n if (LocatorProxies.getLocatorHandler(proxy) != null) {\n return LocatorProxies.present(this);\n }\n return size() > 0;\n }",
"class_method_signature": "FluentListImpl.present()",
"constructor": false,
"full_signature": "@O... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_218 | {
"fields": [
{
"declarator": "configuration",
"modifier": "private",
"original_string": "private ProgrammaticConfiguration configuration;",
"type": "ProgrammaticConfiguration",
"var_name": "configuration"
},
{
"declarator": "configurationProperties1",
"modifier":... | {
"body": "@Test\n public void eventsEnabled() {\n testImpl(ConfigurationProperties::getEventsEnabled, input -> {\n composed.setEventsEnabled(input);\n return null;\n }, null, true, false);\n }",
"class_method_signature": "ComposedConfigurationTest.eventsEnabled()",
"cons... | {
"fields": [
{
"declarator": "configurations",
"modifier": "private final",
"original_string": "private final ConfigurationProperties[] configurations;",
"type": "ConfigurationProperties[]",
"var_name": "configurations"
},
{
"declarator": "writableConfiguration",
... | {
"body": "@Override\n public void setEventsEnabled(Boolean eventsEnabled) {\n getWritableConfiguration().setEventsEnabled(eventsEnabled);\n }",
"class_method_signature": "ComposedConfiguration.setEventsEnabled(Boolean eventsEnabled)",
"constructor": false,
"full_signature": "@Override public void ... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_2 | {
"fields": [
{
"declarator": "context",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private ExtensionContext context;",
"type": "ExtensionContext",
"var_name": "context"
},
{
"declarator": "sut",
"modifier": "private",
"original_string"... | {
"body": "@Test\n void testAfterEachFailure() {\n final AssertionError error = new AssertionError(\"error\");\n when(context.getExecutionException()).thenReturn(Optional.of(error));\n\n sut.afterEach(context);\n\n verify(test)._failed(same(error), eq(Test1.class), eq(\"test1\"));\n ... | {
"fields": [],
"file": "fluentlenium-junit-jupiter/src/main/java/org/fluentlenium/adapter/junit/jupiter/FluentJUnitJupiter.java",
"identifier": "FluentJUnitJupiter",
"interfaces": "implements BeforeEachCallback, AfterEachCallback, AfterAllCallback",
"methods": [
{
"class_method_signature": "FluentJ... | {
"body": "@Override\n public void afterEach(ExtensionContext context) {\n FluentTest instance = testInstanceOf(context);\n Optional<Throwable> throwable = context.getExecutionException();\n\n if (throwable.isPresent()) {\n instance._failed(throwable.get(), testClassOf(context), tes... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_648 | {
"fields": [
{
"declarator": "webDriver",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private WebDriver webDriver;",
"type": "WebDriver",
"var_name": "webDriver"
},
{
"declarator": "configuration",
"modifier": "@Mock\n private",
"ori... | {
"body": "@Test\n public void shouldThrowExceptionForEventsIfEventsRegistryIsNotSet() {\n fluentDriver = spy(new FluentDriver(webDriver, configuration, adapter));\n\n assertThatIllegalStateException().isThrownBy(() -> fluentDriver.events())\n .withMessageStart... | {
"fields": [
{
"declarator": "LOGGER =\n LoggerFactory.getLogger(FluentDriver.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER =\n LoggerFactory.getLogger(FluentDriver.class);",
"type": "Logger",
"var_name": "L... | {
"body": "@Override\n public EventsRegistry events() {\n return checkState(events, \"An EventFiringWebDriver instance is required to use events. \"\n + \"You should set 'eventsEnabled' configuration property to 'true' \"\n + \"or override newWebDriver() to build an EventFiring... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_424 | {
"fields": [],
"file": "fluentlenium-core/src/test/java/org/fluentlenium/core/filter/matcher/NotStartsWithMatcherTest.java",
"identifier": "NotStartsWithMatcherTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void shouldNotStartWithPattern() {\n NotStartsWithMatcher matcher = new NotStartsWithMatcher(Pattern.compile(\"value.*\"));\n\n assertThat(matcher.isSatisfiedBy(\"non-matching\")).isTrue();\n }",
"class_method_signature": "NotStartsWithMatcherTest.shouldNotStartWithPatt... | {
"fields": [],
"file": "fluentlenium-core/src/main/java/org/fluentlenium/core/filter/matcher/NotStartsWithMatcher.java",
"identifier": "NotStartsWithMatcher",
"interfaces": "",
"methods": [
{
"class_method_signature": "NotStartsWithMatcher.NotStartsWithMatcher(String value)",
"constructor": t... | {
"body": "@Override\n public boolean isSatisfiedBy(String currentValue) {\n return !CalculateService.startsWith(getPattern(), getValue(), currentValue);\n }",
"class_method_signature": "NotStartsWithMatcher.isSatisfiedBy(String currentValue)",
"constructor": false,
"full_signature": "@Override pub... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_561 | {
"fields": [],
"file": "fluentlenium-core/src/test/java/org/fluentlenium/core/events/ListenerPriorityComparatorTest.java",
"identifier": "ListenerPriorityComparatorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void shouldReturnNegativeNumberWhenFirstArgumentPriorityIsGreaterThanSecond() {\n String aString = \"a_string\";\n TestListener testListener = new TestListener();\n\n ListenerPriorityComparator comparator = new ListenerPriorityComparator();\n\n assertThat(compa... | {
"fields": [],
"file": "fluentlenium-core/src/main/java/org/fluentlenium/core/events/ListenerPriorityComparator.java",
"identifier": "ListenerPriorityComparator",
"interfaces": "implements Comparator<Object>",
"methods": [
{
"class_method_signature": "ListenerPriorityComparator.compare(Object o1, O... | {
"body": "@Override\n public int compare(Object o1, Object o2) {\n return Integer.compare(getPriority(o2), getPriority(o1));\n }",
"class_method_signature": "ListenerPriorityComparator.compare(Object o1, Object o2)",
"constructor": false,
"full_signature": "@Override public int compare(Object o1, ... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_131 | {
"fields": [
{
"declarator": "fluentList",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentList<FluentWebElement> fluentList;",
"type": "FluentList<FluentWebElement>",
"var_name": "fluentList"
},
{
"declarator": "listAssert",
"modif... | {
"body": "@Test\n public void testSubstringKo() {\n when(fluentList.attributes(\"class\")).thenReturn(singletonList(\"yolokitten\"));\n assertThatAssertionErrorIsThrownBy(() -> listAssert.hasClass(\"yolo\"))\n .hasMessage(\"No selected elements have class: yolo. Actual classes found :... | {
"fields": [],
"file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentListAssert.java",
"identifier": "FluentListAssert",
"interfaces": "implements ListStateAssert, ListAttributeAssert",
"methods": [
{
"class_method_signature": "FluentListAssert.FluentListAssert(FluentLis... | {
"body": "@Override\n public FluentListAssert hasClass(String classToFind) {\n return validateHasClasses(\"No selected elements have class: \", classToFind);\n }",
"class_method_signature": "FluentListAssert.hasClass(String classToFind)",
"constructor": false,
"full_signature": "@Override public F... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_49 | {
"fields": [
{
"declarator": "element",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentWebElement element;",
"type": "FluentWebElement",
"var_name": "element"
},
{
"declarator": "elementAssert",
"modifier": "private",
"origin... | {
"body": "@Test\n public void shouldPassHasNotClassWhenNoClassAttributeIsPresent() {\n elementAssert.hasNotClasses(\"clazz2\", \"clazz4\");\n }",
"class_method_signature": "FluentWebElementAssertTest.shouldPassHasNotClassWhenNoClassAttributeIsPresent()",
"constructor": false,
"full_signature": "@T... | {
"fields": [],
"file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentWebElementAssert.java",
"identifier": "FluentWebElementAssert",
"interfaces": "implements ElementStateAssert, ElementAttributeAssert",
"methods": [
{
"class_method_signature": "FluentWebElementAssert.Fl... | {
"body": "@Override\n public FluentWebElementAssert hasNotClasses(String... classesToFind) {\n String actualClasses = actual.attribute(CLASS_ATTRIBUTE);\n if (actualClasses != null) {\n List<String> actualClassesAsList = getClasses(actualClasses);\n if (actualClassesAsList.cont... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_473 | {
"fields": [
{
"declarator": "fluentControlWait",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentWait fluentControlWait;",
"type": "FluentWait",
"var_name": "fluentControlWait"
},
{
"declarator": "fluentList",
"modifier": "@Mock\n ... | {
"body": "@Test\n public void withNoDefaultsException() {\n wait.withNoDefaultsException();\n Mockito.verify(fluentControlWait).withNoDefaultsException();\n }",
"class_method_signature": "FluentWaitElementListTest.withNoDefaultsException()",
"constructor": false,
"full_signature": "@Test pu... | {
"fields": [
{
"declarator": "elements",
"modifier": "private final",
"original_string": "private final List<? extends FluentWebElement> elements;",
"type": "List<? extends FluentWebElement>",
"var_name": "elements"
},
{
"declarator": "controlWait",
"modifier": "... | {
"body": "@Override\n public FluentWaitElementList withNoDefaultsException() {\n controlWait.withNoDefaultsException();\n return this;\n }",
"class_method_signature": "FluentWaitElementList.withNoDefaultsException()",
"constructor": false,
"full_signature": "@Override public FluentWaitEleme... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_189 | {
"fields": [
{
"declarator": "configuration",
"modifier": "private static",
"original_string": "private static AnnotationConfiguration configuration;",
"type": "AnnotationConfiguration",
"var_name": "configuration"
},
{
"declarator": "defaultConfiguration",
"modi... | {
"body": "@Test\n public void browserTimeoutRetries() {\n Assertions.assertThat(noConfiguration.getBrowserTimeoutRetries()).isNull();\n Assertions.assertThat(defaultConfiguration.getBrowserTimeoutRetries()).isEqualTo(2);\n\n Assertions.assertThat(configuration.getBrowserTimeoutRetries()).isEq... | {
"fields": [
{
"declarator": "configuration",
"modifier": "private final",
"original_string": "private final FluentConfiguration configuration;",
"type": "FluentConfiguration",
"var_name": "configuration"
},
{
"declarator": "customProperties = new HashMap<>()",
"... | {
"body": "@Override\n public Integer getBrowserTimeoutRetries() {\n //Don't change this to method reference because it evaluates configuration before passing the argument, thus throw NPE.\n return getConfig(() -> configuration.browserTimeoutRetries());\n }",
"class_method_signature": "Annotatio... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_166 | {
"fields": [
{
"declarator": "DRIVER_LIFECYCLE = \"driverLifecycle\"",
"modifier": "private static final",
"original_string": "private static final String DRIVER_LIFECYCLE = \"driverLifecycle\";",
"type": "String",
"var_name": "DRIVER_LIFECYCLE"
},
{
"declarator": "ret... | {
"body": "@Test\n public void awaitPollingEvery() {\n assertThat(getConfiguration().getAwaitPollingEvery()).isNull();\n\n mockProperty(\"awaitPollingEvery\", 1000L);\n assertThat(getConfiguration().getAwaitPollingEvery()).isEqualTo(1000L);\n }",
"class_method_signature": "PropertiesBacke... | {
"fields": [
{
"declarator": "PROPERTIES_PREFIX = \"fluentlenium.\"",
"modifier": "static final",
"original_string": "static final String PROPERTIES_PREFIX = \"fluentlenium.\";",
"type": "String",
"var_name": "PROPERTIES_PREFIX"
},
{
"declarator": "prefixes",
"mo... | {
"body": "@Override\n public Long getAwaitPollingEvery() {\n return getLongProperty(\"awaitPollingEvery\");\n }",
"class_method_signature": "PropertiesBackendConfiguration.getAwaitPollingEvery()",
"constructor": false,
"full_signature": "@Override public Long getAwaitPollingEvery()",
"identifier... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_536 | {
"fields": [
{
"declarator": "keyboard",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private Keyboard keyboard;",
"type": "Keyboard",
"var_name": "keyboard"
},
{
"declarator": "mouse",
"modifier": "@Mock\n private",
"original_string"... | {
"body": "@Test\n public void moveToTargetElementOffset() {\n LocatableElement target = mock(LocatableElement.class);\n Coordinates targetCoordinates = mock(Coordinates.class);\n when(target.getCoordinates()).thenReturn(targetCoordinates);\n\n MouseElementActions actions = new MouseEle... | {
"fields": [
{
"declarator": "driver",
"modifier": "private final",
"original_string": "private final WebDriver driver;",
"type": "WebDriver",
"var_name": "driver"
},
{
"declarator": "element",
"modifier": "private final",
"original_string": "private final ... | {
"body": "public MouseElementActions moveToElement() {\n loadElementAndPerform(actions().moveToElement(element));\n return this;\n }",
"class_method_signature": "MouseElementActions.moveToElement()",
"constructor": false,
"full_signature": "public MouseElementActions moveToElement()",
"ident... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_32 | {
"fields": [
{
"declarator": "element",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentWebElement element;",
"type": "FluentWebElement",
"var_name": "element"
},
{
"declarator": "elementAssert",
"modifier": "private",
"origin... | {
"body": "@Test\n public void testHasAttributeOk() {\n when(element.attribute(\"attribute\")).thenReturn(\"some value\");\n elementAssert.hasAttribute(\"attribute\");\n }",
"class_method_signature": "FluentWebElementAssertTest.testHasAttributeOk()",
"constructor": false,
"full_signature": "... | {
"fields": [],
"file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentWebElementAssert.java",
"identifier": "FluentWebElementAssert",
"interfaces": "implements ElementStateAssert, ElementAttributeAssert",
"methods": [
{
"class_method_signature": "FluentWebElementAssert.Fl... | {
"body": "@Override\n public AbstractStringAssert hasAttribute(String attribute) {\n String actualValue = actual.attribute(attribute);\n\n if (actualValue == null) {\n failWithMessage(\"The element does not have attribute \" + attribute);\n }\n\n return new AbstractStringAss... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_371 | {
"fields": [
{
"declarator": "webElement",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private WebElement webElement;",
"type": "WebElement",
"var_name": "webElement"
},
{
"declarator": "webDriver",
"modifier": "@Mock\n private",
"or... | {
"body": "@Test\n public void isStale() {\n assertThat(conditions.stale()).isFalse();\n\n // Selenium invokes enabled to check staleness.\n when(webElement.isEnabled()).thenThrow(StaleElementReferenceException.class);\n\n assertThat(conditions.stale()).isTrue();\n }",
"class_metho... | {
"fields": [],
"file": "fluentlenium-core/src/main/java/org/fluentlenium/core/conditions/WebElementConditions.java",
"identifier": "WebElementConditions",
"interfaces": "implements FluentConditions",
"methods": [
{
"class_method_signature": "WebElementConditions.WebElementConditions(FluentWebElemen... | {
"body": "@Override\n public boolean stale() {\n return verify(FluentWebElement::stale);\n }",
"class_method_signature": "WebElementConditions.stale()",
"constructor": false,
"full_signature": "@Override public boolean stale()",
"identifier": "stale",
"invocations": [
"verify"
],
"modi... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_234 | {
"fields": [],
"file": "fluentlenium-core/src/test/java/org/fluentlenium/utils/UrlUtilsTest.java",
"identifier": "UrlUtilsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testBaseUrlWithPathWithTrailingSlashRootPath() {\n String test = UrlUtils.concat(\"http://fluentlenium.com/path/\", \"/abc/def\");\n Assertions.assertThat(test).isEqualTo(\"http://fluentlenium.com/path/abc/def\");\n }",
"class_method_signature": "UrlUtilsTest.testB... | {
"fields": [
{
"declarator": "PATH_SEPARATOR = \"/\"",
"modifier": "private static final",
"original_string": "private static final String PATH_SEPARATOR = \"/\";",
"type": "String",
"var_name": "PATH_SEPARATOR"
},
{
"declarator": "HTTP = \"http\"",
"modifier": "... | {
"body": "public static String concat(String baseUriSpec, String uriSpec) { // NOPMD CyclomaticComplexity NPathComplexity\n if (baseUriSpec != null && !baseUriSpec.endsWith(PATH_SEPARATOR)) {\n baseUriSpec = baseUriSpec + PATH_SEPARATOR;\n }\n URI baseUri = uriFromSpec(baseUriSpec);\n... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_408 | {
"fields": [],
"file": "fluentlenium-core/src/test/java/org/fluentlenium/core/filter/matcher/EqualMatcherTest.java",
"identifier": "EqualMatcherTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void shouldEqualToString() {\n EndsWithMatcher matcher = new EndsWithMatcher(\"some value\");\n\n assertThat(matcher.isSatisfiedBy(\"some value\")).isTrue();\n }",
"class_method_signature": "EqualMatcherTest.shouldEqualToString()",
"constructor": false,
"full_signat... | {
"fields": [],
"file": "fluentlenium-core/src/main/java/org/fluentlenium/core/filter/matcher/EqualMatcher.java",
"identifier": "EqualMatcher",
"interfaces": "",
"methods": [
{
"class_method_signature": "EqualMatcher.EqualMatcher(String value)",
"constructor": true,
"full_signature": "pu... | {
"body": "@Override\n public boolean isSatisfiedBy(String currentValue) {\n return CalculateService.equal(getPattern(), getValue(), currentValue);\n }",
"class_method_signature": "EqualMatcher.isSatisfiedBy(String currentValue)",
"constructor": false,
"full_signature": "@Override public boolean is... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_326 | {
"fields": [
{
"declarator": "locator",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private ElementLocator locator;",
"type": "ElementLocator",
"var_name": "locator"
},
{
"declarator": "invocationHandler",
"modifier": "private",
"origin... | {
"body": "@Test\n public void testNotLoadedToString() throws Throwable {\n WebElement proxy = mock(WebElement.class);\n Method toString = getMethod(\"toString\");\n when(invocationHandler.loaded()).thenReturn(false);\n\n assertThat(invocationHandler.invoke(proxy, toString, new Object[0... | {
"fields": [
{
"declarator": "TO_STRING = getMethod(Object.class, \"toString\")",
"modifier": "private static final",
"original_string": "private static final Method TO_STRING = getMethod(Object.class, \"toString\");",
"type": "Method",
"var_name": "TO_STRING"
},
{
"de... | {
"body": "@Override\n public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n Object invocationResult = null;\n if (TO_STRING.equals(method)) {\n invocationResult = proxyToString(loaded() ? (String) invoke(method, args) : null);\n } else if (loaded()) ... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_65 | {
"fields": [
{
"declarator": "element",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private FluentWebElement element;",
"type": "FluentWebElement",
"var_name": "element"
},
{
"declarator": "fluentPage",
"modifier": "@Mock\n private",
... | {
"body": "@Test\n public void hasElementOk() {\n when(element.present()).thenReturn(true);\n pageAssert.hasElement(element);\n }",
"class_method_signature": "PageAssertTest.hasElementOk()",
"constructor": false,
"full_signature": "@Test public void hasElementOk()",
"identifier": "hasEleme... | {
"fields": [],
"file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/PageAssert.java",
"identifier": "PageAssert",
"interfaces": "implements PageStateAssert",
"methods": [
{
"class_method_signature": "PageAssert.PageAssert(FluentPage actual)",
"constructor": true,
... | {
"body": "@Override\n public PageAssert hasElement(FluentWebElement element) {\n if (!element.present()) {\n failWithMessage(\"Element \" + element.toString() + \" is not present on current page\");\n }\n return this;\n }",
"class_method_signature": "PageAssert.hasElement(Flue... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
2088736_263 | {
"fields": [
{
"declarator": "componentsManager",
"modifier": "@Mock\n private",
"original_string": "@Mock\n private ComponentsManager componentsManager;",
"type": "ComponentsManager",
"var_name": "componentsManager"
},
{
"declarator": "validator",
"modifie... | {
"body": "@Test\n public void shouldReturnFalseIfFieldIsNotListForComponentList() throws NoSuchFieldException {\n Field notListField = getField(\"webElement\");\n\n assertThat(validator.isComponentList(notListField)).isFalse();\n }",
"class_method_signature": "FluentElementInjectionSupportValid... | {
"fields": [
{
"declarator": "componentsManager",
"modifier": "private final",
"original_string": "private final ComponentsManager componentsManager;",
"type": "ComponentsManager",
"var_name": "componentsManager"
}
],
"file": "fluentlenium-core/src/main/java/org/fluentlenium... | {
"body": "boolean isComponentList(Field field) {\n if (isList(field)) {\n boolean componentListClass = componentsManager.isComponentListClass((Class<? extends List<?>>) field.getType());\n if (componentListClass) {\n Class<?> genericType = ReflectionUtils.getFirstGenericTy... | {
"created": "7/22/2011 1:26:37 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 2088736,
"size": null,
"stargazer_count": null,
"stars": 723,
"updates": "2020-01-25T15:44:19+00:00",
"url": "https://github.com/FluentLenium/Flue... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.