-
Notifications
You must be signed in to change notification settings - Fork 20
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 #180 from marschall/add-Depreaction
Support Pharo native Deprecation
- Loading branch information
Showing
4 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
...ry/Grease-Pharo100-Core.package/GRPharoPlatform.class/instance/deprecationExceptionSet.st
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
exceptions | ||
deprecationExceptionSet | ||
"Answer the exception set that should considered besides WADeprecation." | ||
^ ExceptionSet new | ||
add: Deprecation; | ||
yourself |
6 changes: 6 additions & 0 deletions
6
...ory/Grease-Pharo70-Core.package/GRPharoPlatform.class/instance/deprecationExceptionSet.st
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
exceptions | ||
deprecationExceptionSet | ||
"Answer the exception set that should considered besides WADeprecation." | ||
^ ExceptionSet new | ||
add: Deprecation; | ||
yourself |
6 changes: 6 additions & 0 deletions
6
...ory/Grease-Pharo90-Core.package/GRPharoPlatform.class/instance/deprecationExceptionSet.st
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
exceptions | ||
deprecationExceptionSet | ||
"Answer the exception set that should considered besides WADeprecation." | ||
^ ExceptionSet new | ||
add: Deprecation; | ||
yourself |
10 changes: 10 additions & 0 deletions
10
...ests-Pharo-Core.package/GRPharoPlatformTest.class/instance/testDeprecationExceptionSet.st
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 |
---|---|---|
@@ -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' |