X Tutup
Skip to content

Commit 49a3d6e

Browse files
author
Johan Brichau
authored
Merge pull request SeasideSt#180 from marschall/add-Depreaction
Support Pharo native Deprecation
2 parents cd7a7cb + 6ca509f commit 49a3d6e

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
exceptions
2+
deprecationExceptionSet
3+
"Answer the exception set that should considered besides WADeprecation."
4+
^ ExceptionSet new
5+
add: Deprecation;
6+
yourself
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
exceptions
2+
deprecationExceptionSet
3+
"Answer the exception set that should considered besides WADeprecation."
4+
^ ExceptionSet new
5+
add: Deprecation;
6+
yourself
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
exceptions
2+
deprecationExceptionSet
3+
"Answer the exception set that should considered besides WADeprecation."
4+
^ ExceptionSet new
5+
add: Deprecation;
6+
yourself
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
tests
2+
testDeprecationExceptionSet
3+
| value |
4+
value := [
5+
"intentially send Pharo instead of Grease deprecation message"
6+
self deprecated: 'test'.
7+
'failed' ]
8+
on: GRDeprecatedApiNotification, GRPlatform current deprecationExceptionSet
9+
do: [ :e | 'passed' ].
10+
self assert: value = 'passed'

0 commit comments

Comments
 (0)
X Tutup