Skip to content

Commit

Permalink
Merge pull request #180 from marschall/add-Depreaction
Browse files Browse the repository at this point in the history
Support Pharo native Deprecation
  • Loading branch information
jbrichau committed Jul 17, 2024
2 parents cd7a7cb + 6ca509f commit 49a3d6e
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
exceptions
deprecationExceptionSet
"Answer the exception set that should considered besides WADeprecation."
^ ExceptionSet new
add: Deprecation;
yourself
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
exceptions
deprecationExceptionSet
"Answer the exception set that should considered besides WADeprecation."
^ ExceptionSet new
add: Deprecation;
yourself
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
exceptions
deprecationExceptionSet
"Answer the exception set that should considered besides WADeprecation."
^ ExceptionSet new
add: Deprecation;
yourself
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
tests
testDeprecationExceptionSet
| value |
value := [
"intentially send Pharo instead of Grease deprecation message"
self deprecated: 'test'.
'failed' ]
on: GRDeprecatedApiNotification, GRPlatform current deprecationExceptionSet
do: [ :e | 'passed' ].
self assert: value = 'passed'

0 comments on commit 49a3d6e

Please sign in to comment.