FluentLenium/FluentLenium

View on GitHub
fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java

Summary

Maintainability
D
2 days
Test Coverage

ControlUnitTest has 54 methods (exceeds 20 allowed). Consider refactoring.
Open

@ContextConfiguration(locations = {"classpath:spring-test-config.xml"})
public class ControlUnitTest {

    @Mock
    private FluentControlContainer fluentControlContainer;

    File ControlUnitTest.java has 439 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    package io.fluentlenium.adapter.testng;
    
    import io.fluentlenium.adapter.FluentControlContainer;
    import io.fluentlenium.configuration.Configuration;
    import io.fluentlenium.configuration.DefaultConfigurationFactory;

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

          @Test
          public void shouldCallCookieMethods() {
              control.getCookie("cookie");
              control.getCookies();
              verify(fluentControl, times(1)).getCookie("cookie");
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 136..142
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 152..158
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 168..174
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 184..190
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 216..222

      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 43.

      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 6 locations. Consider refactoring.
      Open

          @Test
          public void shouldCallGetSetHtmlDumpPath() {
              control.setHtmlDumpPath("/path");
              control.getHtmlDumpPath();
              verify(configuration, times(1)).setHtmlDumpPath("/path");
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 136..142
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 152..158
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 184..190
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 216..222
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 315..321

      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 43.

      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 6 locations. Consider refactoring.
      Open

          @Test
          public void shouldCallGetSetRemote() {
              control.setRemoteUrl("http://");
              control.getRemoteUrl();
              verify(configuration, times(1)).setRemoteUrl("http://");
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 136..142
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 152..158
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 168..174
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 184..190
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 315..321

      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 43.

      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 6 locations. Consider refactoring.
      Open

          @Test
          public void shouldCallGetSetWebDriver() {
              control.setWebDriver("chrome");
              control.getWebDriver();
              verify(configuration, times(1)).setWebDriver("chrome");
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 152..158
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 168..174
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 184..190
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 216..222
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 315..321

      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 43.

      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 6 locations. Consider refactoring.
      Open

          @Test
          public void shouldCallGetSetBaseUrl() {
              control.setBaseUrl("url");
              control.getBaseUrl();
              verify(configuration, times(1)).setBaseUrl("url");
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 136..142
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 152..158
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 168..174
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 216..222
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 315..321

      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 43.

      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 6 locations. Consider refactoring.
      Open

          @Test
          public void shouldCallGetSetScreenshotPath() {
              control.setScreenshotPath("/path");
              control.getScreenshotPath();
              verify(configuration, times(1)).setScreenshotPath("/path");
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 136..142
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 168..174
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 184..190
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 216..222
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 315..321

      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 43.

      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 shouldCallGetSetDriverLifecycle() {
              control.setDriverLifecycle(DEFAULT);
              control.getDriverLifecycle();
              verify(configuration, times(1)).setDriverLifecycle(DEFAULT);
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 160..166
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 176..182

      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 43.

      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 shouldCallGetSetBrowserTimeout() {
              control.setBrowserTimeout(1L);
              control.getBrowserTimeout();
              verify(configuration, times(1)).setBrowserTimeout(1L);
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 192..198
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 232..238
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 240..246

      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 43.

      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 shouldCallGetSetScriptTimeout() {
              control.setScriptTimeout(1L);
              control.getScriptTimeout();
              verify(configuration, times(1)).setScriptTimeout(1L);
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 128..134
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 192..198
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 240..246

      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 43.

      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 shouldCallGetSetImplicitlyWait() {
              control.setImplicitlyWait(1L);
              control.getImplicitlyWait();
              verify(configuration, times(1)).setImplicitlyWait(1L);
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 128..134
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 192..198
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 232..238

      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 43.

      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 shouldCallGetSetScreenshotMode() {
              control.setScreenshotMode(AUTOMATIC_ON_FAIL);
              control.getScreenshotMode();
              verify(configuration, times(1)).setScreenshotMode(AUTOMATIC_ON_FAIL);
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 176..182
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 208..214

      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 43.

      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 shouldCallGetSetHtmlDumpMode() {
              control.setHtmlDumpMode(AUTOMATIC_ON_FAIL);
              control.getHtmlDumpMode();
              verify(configuration, times(1)).setHtmlDumpMode(AUTOMATIC_ON_FAIL);
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 160..166
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 208..214

      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 43.

      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 shouldCallGetSetPageLoadTimeout() {
              control.setPageLoadTimeout(1L);
              control.getPageLoadTimeout();
              verify(configuration, times(1)).setPageLoadTimeout(1L);
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 128..134
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 232..238
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 240..246

      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 43.

      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 2 locations. Consider refactoring.
      Open

          @Test
          public void shouldCallGetSetAwaitPollingEvery() {
              control.getAwaitPollingEvery();
              control.setAwaitPollingEvery(1L);
              verify(configuration, times(1)).getAwaitPollingEvery();
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 104..110

      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 43.

      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 2 locations. Consider refactoring.
      Open

          @Test
          public void shouldCallGetSetEventsEnabled() {
              control.setEventsEnabled(true);
              control.getEventsEnabled();
              verify(configuration, times(1)).setEventsEnabled(true);
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 144..150

      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 43.

      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 2 locations. Consider refactoring.
      Open

          @Test
          public void shouldCallGetSetDeleteCookies() {
              control.setDeleteCookies(true);
              control.getDeleteCookies();
              verify(configuration, times(1)).setDeleteCookies(true);
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 224..230

      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 43.

      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 2 locations. Consider refactoring.
      Open

          @Test
          public void shouldCallGetSetAwaitAtMost() {
              control.getAwaitAtMost();
              control.setAwaitAtMost(1L);
              verify(configuration, times(1)).getAwaitAtMost();
      fluentlenium-spring-testng/src/test/java/io/fluentlenium/adapter/testng/ControlUnitTest.java on lines 96..102

      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 43.

      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

      Name 'io.fluentlenium.adapter.testng' must match pattern '^org.[a-z]+(.[a-zA-Z_][a-zA-Z0-9_]*)*$'.
      Open

      package io.fluentlenium.adapter.testng;

      Checks that package names conform to a specified pattern.

      The default value of format for module PackageName has beenchosen to match the requirements in the JavaLanguage specification and the Sun coding conventions. Howeverboth underscores and uppercase letters are rather uncommon, so mostconfigurations should probably assign value ^[a-z]+(\.[a-z][a-z0-9]*)*$ toformat for module PackageName.

      This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

      There are no issues that match your filters.

      Category
      Status