Skip to content

Commit

Permalink
ktlint manual changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ursjoss committed Jun 28, 2020
1 parent 1d296e6 commit dae436c
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
max_line_length = 120
max_line_length = 150
tab_width = 4
ij_continuation_indent_size = 8
ij_formatter_off_tag = @formatter:off
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ package ch.difty.scipamato.core.persistence.paper
import ch.difty.scipamato.core.db.tables.records.PaperRecord
import ch.difty.scipamato.core.entity.Paper
import ch.difty.scipamato.core.persistence.RecordMapperTest
import io.mockk.*
import org.amshove.kluent.*
import io.mockk.every
import org.amshove.kluent.shouldBeEmpty
import org.amshove.kluent.shouldBeEqualTo
import org.jooq.RecordMapper

class PaperRecordMapperTest : RecordMapperTest<PaperRecord, Paper>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ package ch.difty.scipamato.core.persistence.search
import ch.difty.scipamato.core.db.tables.records.SearchOrderRecord
import ch.difty.scipamato.core.entity.search.SearchOrder
import ch.difty.scipamato.core.persistence.RecordMapperTest
import io.mockk.*
import org.amshove.kluent.*
import io.mockk.every
import org.amshove.kluent.shouldBeEmpty
import org.amshove.kluent.shouldBeEqualTo
import org.amshove.kluent.shouldBeFalse
import org.jooq.RecordMapper

@Suppress("UsePropertyAccessSyntax")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ internal class KeywordListPageTest : BasePageTest<KeywordListPage>() {
if (colIdxAsLink != null)
tester.assertComponent("$b:body:rows:$rowIdx:cells:$colIdxAsLink:cell:link", Link::class.java)
var colIdx = 1
for (value in values) tester.assertLabel(b + ":body:rows:" + rowIdx + ":cells:" + colIdx + ":cell" + if (colIdxAsLink != null && colIdx++ == colIdxAsLink) ":link:label" else "", value)
for (value in values)
tester.assertLabel(
"$b:body:rows:$rowIdx:cells:$colIdx:cell${if (colIdxAsLink != null && colIdx++ == colIdxAsLink) ":link:label" else ""}",
value
)
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ internal class UserListPageAsAdminTest : BasePageTest<UserListPage>() {
"$b:body:rows:$rIdx:cells:$colIdxAsLink:cell:link",
Link::class.java
)
for (value in values) tester.assertLabel(b + ":body:rows:" + rIdx + ":cells:" + colIdx + ":cell" + if (colIdxAsLink != null && colIdx++ == colIdxAsLink) ":link:label" else "", value)
for (value in values)
tester.assertLabel(
"$b:body:rows:$rIdx:cells:$colIdx:cell${if (colIdxAsLink != null && colIdx++ == colIdxAsLink) ":link:label" else ""}",
value
)
rIdx++
}
}
Expand Down
2 changes: 1 addition & 1 deletion detekt-config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
style:
MaxLineLength:
maxLineLength: 120
maxLineLength: 150

complexity:
LongParameterList:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ abstract class WicketTest {

@BeforeEach
fun setUp() {
application.setHeaderResponseDecorator { r: IHeaderResponse? -> ResourceAggregator(JavaScriptFilteredIntoFooterHeaderResponse(r, "footer-container")) }
application.setHeaderResponseDecorator { r: IHeaderResponse? ->
ResourceAggregator(JavaScriptFilteredIntoFooterHeaderResponse(r, "footer-container"))
}
ReflectionTestUtils.setField(application, "applicationContext", applicationContextMock)
tester = WicketTester(application)
every { sessionFacadeMock.paperIdManager } returns itemNavigator
Expand Down

0 comments on commit dae436c

Please sign in to comment.