Blethery Prefixes

Definition:

  • Where the implementation of a single line of test code is prefixed by a lot of characters before we get to the point

Code Example:

@Test
void someTest() {
    Mockito.when(someMock.get())
    .thenReturn(123);

    ...
}

References:

Quality attributes

  • - Code Example

  • - Cause and Effect

  • - Frequency

  • - Refactoring