-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from Trendyol/jdempotent-deprecated
updated deprecated annotations
- Loading branch information
Showing
15 changed files
with
42 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
Jdempotent-core/src/test/java/aspect/core/IdempotentTestPayload.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 13 additions & 13 deletions
26
Jdempotent-core/src/test/java/aspect/core/TestIdempotentResource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
package aspect.core; | ||
|
||
import com.trendyol.jdempotent.core.annotation.IdempotentRequestPayload; | ||
import com.trendyol.jdempotent.core.annotation.IdempotentResource; | ||
import com.trendyol.jdempotent.core.annotation.JdempotentRequestPayload; | ||
import com.trendyol.jdempotent.core.annotation.JdempotentResource; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
public class TestIdempotentResource { | ||
@IdempotentResource | ||
@JdempotentResource | ||
public void idempotentMethod(IdempotentTestPayload testObject) { | ||
} | ||
|
||
@IdempotentResource(cachePrefix = "TestIdempotentResource") | ||
@JdempotentResource(cachePrefix = "TestIdempotentResource") | ||
public void idempotentMethodThrowingARuntimeException(IdempotentTestPayload testObject) { | ||
throw new TestException(); | ||
} | ||
|
||
@IdempotentResource(cachePrefix = "TestIdempotentResource") | ||
public void idempotentMethodWithThreeParameter(@IdempotentRequestPayload IdempotentTestPayload testObject, IdempotentTestPayload anotherObject, IdempotentTestPayload anotherObject2) { | ||
@JdempotentResource(cachePrefix = "TestIdempotentResource") | ||
public void idempotentMethodWithThreeParameter(@JdempotentRequestPayload IdempotentTestPayload testObject, IdempotentTestPayload anotherObject, IdempotentTestPayload anotherObject2) { | ||
} | ||
|
||
@IdempotentResource(cachePrefix = "TestIdempotentResource") | ||
public void idempotentMethodWithThreeParamaterAndMultipleIdempotentRequestPayloadAnnotation(IdempotentTestPayload testObject, @IdempotentRequestPayload IdempotentTestPayload anotherObject, @IdempotentRequestPayload Object anotherObject2) { | ||
@JdempotentResource(cachePrefix = "TestIdempotentResource") | ||
public void idempotentMethodWithThreeParamaterAndMultipleJdempotentRequestPayloadAnnotation(IdempotentTestPayload testObject, @JdempotentRequestPayload IdempotentTestPayload anotherObject, @JdempotentRequestPayload Object anotherObject2) { | ||
} | ||
|
||
@IdempotentResource(cachePrefix = "TestIdempotentResource") | ||
@JdempotentResource(cachePrefix = "TestIdempotentResource") | ||
public void idempotentMethodWithZeroParamater() { | ||
} | ||
|
||
@IdempotentResource(cachePrefix = "TestIdempotentResource") | ||
@JdempotentResource(cachePrefix = "TestIdempotentResource") | ||
public void methodWithTwoParamater(IdempotentTestPayload testObject, IdempotentTestPayload anotherObject) { | ||
} | ||
|
||
@IdempotentResource | ||
@JdempotentResource | ||
public IdempotentTestPayload idempotentMethodReturnArg(IdempotentTestPayload testObject) { | ||
return testObject; | ||
} | ||
|
||
@IdempotentResource | ||
public String idempotencyKeyAsString(@IdempotentRequestPayload String idempotencyKey) { | ||
@JdempotentResource | ||
public String idempotencyKeyAsString(@JdempotentRequestPayload String idempotencyKey) { | ||
return idempotencyKey; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters