This commit is contained in:
usbharu 2024-06-13 15:31:47 +09:00
parent ad9a4852f3
commit 5ab62d1250
9 changed files with 12 additions and 17 deletions

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
@file:Suppress("SpringJavaInjectionPointsAutowiringInspection")
package mastodon.account
import com.fasterxml.jackson.core.type.TypeReference
@ -41,6 +43,7 @@ import org.springframework.test.web.servlet.setup.MockMvcBuilders
import org.springframework.transaction.annotation.Transactional
import org.springframework.web.context.WebApplicationContext
@Suppress("NonAsciiCharacters")
@SpringBootTest(classes = [SpringApplication::class])
@AutoConfigureMockMvc
@Transactional
@ -48,6 +51,7 @@ import org.springframework.web.context.WebApplicationContext
@Sql("/sql/test-user2.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_CLASS)
@Sql("/sql/accounts/test-accounts-statuses.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_CLASS)
class AccountApiPaginationTest {
@Suppress("SpringJavaInjectionPointsAutowiringInspection")
@Autowired
private lateinit var context: WebApplicationContext

View File

@ -25,7 +25,7 @@ abstract class AbstractApplicationService<T : Any, R>(
) : ApplicationService<T, R> {
override suspend fun execute(command: T, executor: CommandExecutor): R {
return try {
logger.debug("START ${command::class.simpleName} by $executor")
logger.debug("START {} by {}", command::class.simpleName, executor)
val response = transaction.transaction<R> {
internalExecute(command, executor)
}

View File

@ -1,4 +1,3 @@
package dev.usbharu.hideout.core.domain.model.filter
class FilterResult(val filter: Filter, val matchedKeyword: String) {
}
class FilterResult(val filter: Filter, val matchedKeyword: String)

View File

@ -32,9 +32,7 @@ class AuthController(
private val springMvcCommandExecutorFactory: SpringMvcCommandExecutorFactory,
) {
@GetMapping("/auth/sign_up")
fun signUp(): String {
return "sign_up"
}
fun signUp(): String = "sign_up"
@PostMapping("/auth/sign_up")
suspend fun signUp(@Validated @ModelAttribute signUpForm: SignUpForm, request: HttpServletRequest): String {

View File

@ -1,3 +1,4 @@
#file: noinspection SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection
hideout:
url: "https://test-hideout-dev.usbharu.dev"
use-mongodb: true

View File

@ -1,5 +1,3 @@
package dev.usbharu.hideout.core.domain.model.actor
class ActorDescriptionTest {
}
class ActorDescriptionTest

View File

@ -193,7 +193,7 @@ class PostTest {
}
@Test
fun hideがtrueのときcontetnがemptyを返す() {
fun hideがtrueのときcontentがemptyを返す() {
val post = TestPostFactory.create(hide = true)
assertEquals(PostContent.empty, post.content)

View File

@ -17,12 +17,7 @@
package dev.usbharu.hideout.mastodon.interfaces.api
import dev.usbharu.hideout.mastodon.interfaces.api.generated.TimelineApi
import dev.usbharu.hideout.mastodon.interfaces.api.generated.model.Status
import kotlinx.coroutines.flow.Flow
import org.springframework.http.ResponseEntity
import org.springframework.stereotype.Controller
@Controller
class SpringTimelineApi : TimelineApi {
}
class SpringTimelineApi : TimelineApi

View File

@ -1540,7 +1540,7 @@ components:
type: boolean
moved:
type: boolean
suspendex:
suspended:
type: boolean
limited:
type: boolean