Skip to content

Commit

Permalink
fix: 테스트 수행 후에 테스트 데이터를 초기화하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
70825 committed Jul 27, 2023
1 parent bd9fd3f commit 60a342c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.funeat.common;

import org.junit.jupiter.api.extension.BeforeEachCallback;
import org.junit.jupiter.api.extension.AfterEachCallback;
import org.junit.jupiter.api.extension.ExtensionContext;
import org.springframework.test.context.junit.jupiter.SpringExtension;

public class DataClearExtension implements BeforeEachCallback {
public class DataClearExtension implements AfterEachCallback {

@Override
public void beforeEach(final ExtensionContext context) {
public void afterEach(final ExtensionContext context) {
final DataCleaner dataCleaner = getDataCleaner(context);
dataCleaner.clear();
}
Expand Down

0 comments on commit 60a342c

Please sign in to comment.