Skip to content
Snippets Groups Projects
Commit fcc4319f authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4589 rename logging

parent 2d6f2ddb
No related branches found
No related tags found
No related merge requests found
......@@ -32,11 +32,6 @@ public class AspectPointcuts {
// aspect pointcut - no implementation needed
}
@Pointcut("within(de.itvsh..*)")
void anythingInKOP() {
// aspect pointcut - no implementation needed
}
@Pointcut("within(de.ozgcloud..*)")
void anythingInOzgCloud() {
// aspect pointcut - no implementation needed
......
......@@ -36,6 +36,6 @@ import static java.lang.annotation.RetentionPolicy.*;
@Retention(RUNTIME)
@Documented
@InterceptorBinding
public @interface KopLogging {
public @interface OzgCloudLogging {
}
......@@ -32,7 +32,7 @@ import org.springframework.stereotype.Component;
@Aspect
@Component
public class KopLoggingAspect extends AspectPointcuts {
public class OzgCloudLoggingAspect extends AspectPointcuts {
@Before("anyPublicServiceMethod()")
public void onServiceMethod(JoinPoint joinPoint) {
......
......@@ -28,10 +28,10 @@ import jakarta.interceptor.AroundInvoke;
import jakarta.interceptor.Interceptor;
import jakarta.interceptor.InvocationContext;
@KopLogging
@OzgCloudLogging
@Priority(10)
@Interceptor
public class KopLoggingInterceptor {
public class OzgCloudLoggingInterceptor {
@AroundInvoke
Object logging(InvocationContext context) throws Exception {
......
......@@ -33,14 +33,14 @@ import org.mockito.Mock;
import org.mockito.MockedStatic;
import de.ozgcloud.common.logging.AspectLoggingUtils;
import de.ozgcloud.common.logging.KopLoggingInterceptor;
import de.ozgcloud.common.logging.OzgCloudLoggingInterceptor;
import static org.assertj.core.api.Assertions.*;
import static org.mockito.Mockito.*;
class KopLoggingInterceptorTest {
class OzgCloudLoggingInterceptorTest {
private final KopLoggingInterceptor interceptor = new KopLoggingInterceptor();
private final OzgCloudLoggingInterceptor interceptor = new OzgCloudLoggingInterceptor();
@DisplayName("Logging")
@Nested
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment