Skip to content

Commit

Permalink
Merge pull request #22 from ba-st/pharo-8
Browse files Browse the repository at this point in the history
Pharo 8
  • Loading branch information
gcotelli committed Jan 28, 2020
2 parents 3bc4933 + 33fa565 commit 4025d05
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 26 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
[![GitHub release](https://img.shields.io/github/release/ba-st/Hyperspace.svg)](https://github.com/ba-st/Hyperspace/releases/latest)
[![Build Status](https://travis-ci.com/ba-st/Hyperspace.svg?branch=release-candidate)](https://travis-ci.com/ba-st/Hyperspace)
[![Coverage Status](https://coveralls.io/repos/github/ba-st/Hyperspace/badge.svg?branch=release-candidate)](https://coveralls.io/github/ba-st/Hyperspace?branch=release-candidate)
[![Pharo 6.1](https://img.shields.io/badge/Pharo-6.1-informational)](https://pharo.org)
[![Pharo 7.0](https://img.shields.io/badge/Pharo-7.0-informational)](https://pharo.org)
[![Pharo 8.0](https://img.shields.io/badge/Pharo-8.0-informational)](https://pharo.org)

## License

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Class {
#name : #ZnClientExtensionsTest,
#name : #ZnClientHyperspaceExtensionsTest,
#superclass : #TestCase,
#category : #'Hyperspace-Model-Tests-Zinc'
}

{ #category : #tests }
ZnClientExtensionsTest >> testSetAccept [
ZnClientHyperspaceExtensionsTest >> testSetAccept [

| client |

Expand All @@ -17,7 +17,7 @@ ZnClientExtensionsTest >> testSetAccept [
]

{ #category : #tests }
ZnClientExtensionsTest >> testSetIfMatchTo [
ZnClientHyperspaceExtensionsTest >> testSetIfMatchTo [

| client |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
I'm a test case for Hyperspace's ZnEntity extensions
"
Class {
#name : #ZnEntityExtensionsTest,
#name : #ZnEntityHyperspaceExtensionsTest,
#superclass : #TestCase,
#category : #'Hyperspace-Model-Tests-Zinc'
}

{ #category : #tests }
ZnEntityExtensionsTest >> applicationJson [
ZnEntityHyperspaceExtensionsTest >> applicationJson [

^ 'application/json' asMediaType
]

{ #category : #tests }
ZnEntityExtensionsTest >> testJsonExtension [
ZnEntityHyperspaceExtensionsTest >> testJsonExtension [

| entity |

Expand All @@ -25,7 +25,7 @@ ZnEntityExtensionsTest >> testJsonExtension [
]

{ #category : #tests }
ZnEntityExtensionsTest >> testWithOfTypeExtension [
ZnEntityHyperspaceExtensionsTest >> testWithOfTypeExtension [

| entity |

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Class {
#name : #ZnMimeTypeExtensionsTest,
#name : #ZnMimeTypeHyperspaceExtensionsTest,
#superclass : #TestCase,
#category : #'Hyperspace-Model-Tests-Zinc'
}

{ #category : #tests }
ZnMimeTypeExtensionsTest >> testComparingWithParameters [
ZnMimeTypeHyperspaceExtensionsTest >> testComparingWithParameters [

| mimeType equalMimeType |

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
Class {
#name : #ZnRequestExtensionsTest,
#name : #ZnRequestHyperspaceExtensionsTest,
#superclass : #TestCase,
#category : #'Hyperspace-Model-Tests-Zinc'
}

{ #category : #tests }
ZnRequestExtensionsTest >> googleUrl [
ZnRequestHyperspaceExtensionsTest >> googleUrl [

^ 'https://google.com' asZnUrl
]

{ #category : #tests }
ZnRequestExtensionsTest >> testIfMatch [
ZnRequestHyperspaceExtensionsTest >> testIfMatch [

| request |

Expand All @@ -23,7 +23,7 @@ ZnRequestExtensionsTest >> testIfMatch [
]

{ #category : #tests }
ZnRequestExtensionsTest >> testIfNoneMatch [
ZnRequestHyperspaceExtensionsTest >> testIfNoneMatch [

| request |

Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
Class {
#name : #ZnResponseExtensionsTest,
#name : #ZnResponseHyperspaceExtensionsTest,
#superclass : #TestCase,
#category : #'Hyperspace-Model-Tests-Zinc'
}

{ #category : #tests }
ZnResponseExtensionsTest >> amazonUrl [
ZnResponseHyperspaceExtensionsTest >> amazonUrl [

^ 'https://amazon.com' asZnUrl
]

{ #category : #tests }
ZnResponseExtensionsTest >> googleUrl [
ZnResponseHyperspaceExtensionsTest >> googleUrl [

^ 'https://google.com' asZnUrl
]

{ #category : #tests }
ZnResponseExtensionsTest >> testAddSeveralLinks [
ZnResponseHyperspaceExtensionsTest >> testAddSeveralLinks [

| response |

Expand All @@ -34,7 +34,7 @@ ZnResponseExtensionsTest >> testAddSeveralLinks [
]

{ #category : #tests }
ZnResponseExtensionsTest >> testCachingDirectives [
ZnResponseHyperspaceExtensionsTest >> testCachingDirectives [

| response |

Expand All @@ -48,7 +48,7 @@ ZnResponseExtensionsTest >> testCachingDirectives [
]

{ #category : #tests }
ZnResponseExtensionsTest >> testEntityTag [
ZnResponseHyperspaceExtensionsTest >> testEntityTag [

| response entityTag |

Expand All @@ -64,7 +64,7 @@ ZnResponseExtensionsTest >> testEntityTag [
]

{ #category : #tests }
ZnResponseExtensionsTest >> testLink [
ZnResponseHyperspaceExtensionsTest >> testLink [

| response |

Expand All @@ -76,7 +76,7 @@ ZnResponseExtensionsTest >> testLink [
]

{ #category : #tests }
ZnResponseExtensionsTest >> testWithEntityTagDo [
ZnResponseHyperspaceExtensionsTest >> testWithEntityTagDo [

| response entityTag wasFound |

Expand All @@ -97,7 +97,7 @@ ZnResponseExtensionsTest >> testWithEntityTagDo [
]

{ #category : #tests }
ZnResponseExtensionsTest >> testWithEntityTagDoNotFound [
ZnResponseHyperspaceExtensionsTest >> testWithEntityTagDoNotFound [

| response headerWasNotFound |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
I'm a test for extensions on ZnUrl
"
Class {
#name : #ZnUrlTest,
#name : #ZnUrlHyperspaceExtensionsTest,
#superclass : #TestCase,
#category : #'Hyperspace-Model-Tests-Zinc'
}

{ #category : #tests }
ZnUrlTest >> testAsHostedAt [
ZnUrlHyperspaceExtensionsTest >> testAsHostedAt [

self
assert: ( 'http://api.example.com/resource' asUrl asHostedAt: 'http://alternative.org' asUrl )
Expand All @@ -26,7 +26,7 @@ ZnUrlTest >> testAsHostedAt [
]

{ #category : #tests }
ZnUrlTest >> testQueryAtPutUrl [
ZnUrlHyperspaceExtensionsTest >> testQueryAtPutUrl [

self
assert:
Expand All @@ -37,7 +37,7 @@ ZnUrlTest >> testQueryAtPutUrl [
]

{ #category : #tests }
ZnUrlTest >> testStartLimit [
ZnUrlHyperspaceExtensionsTest >> testStartLimit [

self
assert: ( 'https://api.example.com/pets' asUrl start: 1 limit: 10 )
Expand Down

0 comments on commit 4025d05

Please sign in to comment.