FluentLenium/FluentLenium

View on GitHub

Showing 563 of 1,951 total issues

Identical blocks of code found in 2 locations. Consider refactoring.
Open

    @Before
    public void before() {
        wait = new FluentWait(fluent);
        wait.atMost(10L, TimeUnit.MILLISECONDS);
        wait.pollingEvery(1L, TimeUnit.MILLISECONDS);
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 59..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 167.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

    @Before
    public void before() {
        wait = new FluentWait(fluent);
        wait.atMost(10L, TimeUnit.MILLISECONDS);
        wait.pollingEvery(1L, TimeUnit.MILLISECONDS);
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 59..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 167.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

    @Test
    public void hasText() {
        FluentListConditions matcher = wait.until(fluentWebElements);
        assertThatThrownBy(() -> matcher.text().equalTo("text")).isExactlyInstanceOf(TimeoutException.class);

fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 235..254
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 242..261

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 163.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

    @Test
    public void containsText() {
        FluentListConditions matcher = wait.untilEach(fluentWebElements);
        assertThatThrownBy(() -> matcher.text().contains("ex")).isExactlyInstanceOf(TimeoutException.class);

fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 221..240
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 242..261

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 163.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

    @Test
    public void containsText() {
        FluentListConditions matcher = wait.until(fluentWebElements);
        assertThatThrownBy(() -> matcher.text().contains("ex")).isExactlyInstanceOf(TimeoutException.class);

fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 235..254
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 221..240

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 163.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 4 locations. Consider refactoring.
Open

    @Test
    public void hasId() {
        FluentListConditions matcher = wait.until(fluentWebElements);
        assertThatThrownBy(() -> matcher.id("value")).isExactlyInstanceOf(TimeoutException.class);

fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 176..195
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 197..216
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 200..219

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 157.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 4 locations. Consider refactoring.
Open

    @Test
    public void hasName() {
        FluentListConditions matcher = wait.until(fluentWebElements);
        assertThatThrownBy(() -> matcher.name("name")).isExactlyInstanceOf(TimeoutException.class);

fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 176..195
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 197..216
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 179..198

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 157.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 4 locations. Consider refactoring.
Open

    @Test
    public void hasId() {
        FluentListConditions matcher = wait.untilEach(fluentWebElements);
        assertThatThrownBy(() -> matcher.id("value")).isExactlyInstanceOf(TimeoutException.class);

fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 197..216
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 179..198
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 200..219

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 157.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 4 locations. Consider refactoring.
Open

    @Test
    public void hasName() {
        FluentListConditions matcher = wait.untilEach(fluentWebElements);
        assertThatThrownBy(() -> matcher.name("name")).isExactlyInstanceOf(TimeoutException.class);

fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 176..195
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 179..198
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 200..219

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 157.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 10 locations. Consider refactoring.
Open

    @Test
    public void isClickable() {
        FluentListConditions matcher = wait.until(fluentWebElements);
        assertThatThrownBy(matcher::clickable).isExactlyInstanceOf(TimeoutException.class);

fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 273..292
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 304..323
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 325..344
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 346..365
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 367..386
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 280..299
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 311..330
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 332..351
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 374..393

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 147.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 10 locations. Consider refactoring.
Open

    @Test
    public void isClickable() {
        FluentListConditions matcher = wait.untilEach(fluentWebElements);
        assertThatThrownBy(matcher::clickable).isExactlyInstanceOf(TimeoutException.class);

fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 273..292
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 304..323
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 325..344
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 367..386
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 280..299
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 311..330
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 332..351
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 353..372
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 374..393

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 147.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 10 locations. Consider refactoring.
Open

    @Test
    public void isSelected() {
        FluentListConditions matcher = wait.untilEach(fluentWebElements);
        assertThatThrownBy(matcher::selected).isExactlyInstanceOf(TimeoutException.class);

fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 273..292
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 325..344
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 346..365
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 367..386
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 280..299
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 311..330
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 332..351
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 353..372
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 374..393

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 147.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 10 locations. Consider refactoring.
Open

    @Test
    public void isEnabled() {
        FluentListConditions matcher = wait.until(fluentWebElements);
        assertThatThrownBy(matcher::enabled).isExactlyInstanceOf(TimeoutException.class);

fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 273..292
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 304..323
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 325..344
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 346..365
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 367..386
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 311..330
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 332..351
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 353..372
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 374..393

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 147.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 10 locations. Consider refactoring.
Open

    @Test
    public void isDisplayed() {
        FluentListConditions matcher = wait.untilEach(fluentWebElements);
        assertThatThrownBy(matcher::displayed).isExactlyInstanceOf(TimeoutException.class);

fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 273..292
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 304..323
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 346..365
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 367..386
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 280..299
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 311..330
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 332..351
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 353..372
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 374..393

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 147.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 10 locations. Consider refactoring.
Open

    @Test
    public void isSelected() {
        FluentListConditions matcher = wait.until(fluentWebElements);
        assertThatThrownBy(matcher::selected).isExactlyInstanceOf(TimeoutException.class);

fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 273..292
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 304..323
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 325..344
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 346..365
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 367..386
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 280..299
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 332..351
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 353..372
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 374..393

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 147.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 10 locations. Consider refactoring.
Open

    @Test
    public void isStale() {
        FluentListConditions matcher = wait.until(fluentWebElements);
        assertThatThrownBy(matcher::stale).isExactlyInstanceOf(TimeoutException.class);

fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 273..292
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 304..323
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 325..344
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 346..365
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 367..386
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 280..299
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 311..330
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 332..351
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 353..372

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 147.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 10 locations. Consider refactoring.
Open

    @Test
    public void isEnabled() {
        FluentListConditions matcher = wait.untilEach(fluentWebElements);
        assertThatThrownBy(matcher::enabled).isExactlyInstanceOf(TimeoutException.class);

fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 304..323
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 325..344
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 346..365
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 367..386
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 280..299
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 311..330
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 332..351
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 353..372
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 374..393

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 147.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 10 locations. Consider refactoring.
Open

    @Test
    public void isStale() {
        FluentListConditions matcher = wait.untilEach(fluentWebElements);
        assertThatThrownBy(matcher::stale).isExactlyInstanceOf(TimeoutException.class);

fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 273..292
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 304..323
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 325..344
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 346..365
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 280..299
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 311..330
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 332..351
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 353..372
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 374..393

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 147.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 10 locations. Consider refactoring.
Open

    @Test
    public void isDisplayed() {
        FluentListConditions matcher = wait.until(fluentWebElements);
        assertThatThrownBy(matcher::displayed).isExactlyInstanceOf(TimeoutException.class);

fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 273..292
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 304..323
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 325..344
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 346..365
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitEachElementMatcherTest.java on lines 367..386
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 280..299
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 311..330
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 353..372
fluentlenium-core/src/test/java/io/fluentlenium/core/wait/FluentWaitElementListMatcherTest.java on lines 374..393

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 147.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

package io.fluentlenium;

import io.fluentlenium.core.FluentPage;
import io.fluentlenium.core.annotation.Page;
import org.testng.annotations.Test;
fluentlenium-testng/src/test/java/io/fluentlenium/adapter/testng/integration/CyclicDependencyTest.java on lines 1..83

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 131.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Severity
Category
Status
Source
Language