Skip to content

Commit

Permalink
🔧 rename StargateApplicationTest tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mreyes committed Jul 2, 2024
1 parent a678083 commit a75af8e
Show file tree
Hide file tree
Showing 7 changed files with 143 additions and 137 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,38 @@
I'm a testing application used to check the concurrent connections threshold configuration parameter behavior.
"
Class {
#name : #ConcurrentConnectionsTestApplication,
#superclass : #StargateApplication,
#category : 'Stargate-API-Skeleton-Tests'
#name : 'ConcurrentConnectionsTestApplication',
#superclass : 'StargateApplication',
#category : 'Stargate-API-Skeleton-Tests',
#package : 'Stargate-API-Skeleton-Tests'
}

{ #category : #accessing }
{ #category : 'accessing' }
ConcurrentConnectionsTestApplication class >> commandName [

^ 'concurrent-connections-test'
]

{ #category : #accessing }
{ #category : 'accessing' }
ConcurrentConnectionsTestApplication class >> description [

^'A Test API making the request processing to wait a certain amount of time'
]

{ #category : #initialization }
{ #category : 'initialization' }
ConcurrentConnectionsTestApplication class >> initialize [

<ignoreForCoverage>
self initializeVersion
]

{ #category : #private }
{ #category : 'private' }
ConcurrentConnectionsTestApplication class >> projectName [

^ 'Stargate'
]

{ #category : #'private - accessing' }
{ #category : 'private - accessing' }
ConcurrentConnectionsTestApplication >> controllersToInstall [

^ { DelayedRESTfulController new }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@ I'm a example of a RESTful controller:
- not using hypermedia
"
Class {
#name : #DelayedRESTfulController,
#superclass : #SingleResourceRESTfulController,
#name : 'DelayedRESTfulController',
#superclass : 'SingleResourceRESTfulController',
#instVars : [
'requestHandler'
],
#category : 'Stargate-API-Skeleton-Tests'
#category : 'Stargate-API-Skeleton-Tests',
#package : 'Stargate-API-Skeleton-Tests'
}

{ #category : #routes }
{ #category : 'routes' }
DelayedRESTfulController >> declareWaitRoute [

^ RouteSpecification handling: #GET at: self endpoint evaluating: [ :httpRequest :requestContext |
Expand All @@ -22,7 +23,7 @@ DelayedRESTfulController >> declareWaitRoute [
]
]

{ #category : #initialization }
{ #category : 'initialization' }
DelayedRESTfulController >> initialize [

super initialize.
Expand All @@ -32,13 +33,13 @@ DelayedRESTfulController >> initialize [
build
]

{ #category : #private }
{ #category : 'private' }
DelayedRESTfulController >> requestHandler [

^ requestHandler
]

{ #category : #private }
{ #category : 'private' }
DelayedRESTfulController >> typeIdConstraint [

^ IsObject
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
Class {
#name : #StargateApplicationStackTraceDumperTest,
#superclass : #TestCase,
#category : 'Stargate-API-Skeleton-Tests'
#name : 'StargateApplicationStackTraceDumperTest',
#superclass : 'TestCase',
#category : 'Stargate-API-Skeleton-Tests',
#package : 'Stargate-API-Skeleton-Tests'
}

{ #category : #accessing }
{ #category : 'accessing' }
StargateApplicationStackTraceDumperTest class >> defaultTimeLimit [

^5 minute
]

{ #category : #running }
{ #category : 'running' }
StargateApplicationStackTraceDumperTest >> setUp [

super setUp.
StargateApplication logsDirectory ensureCreateDirectory
]

{ #category : #'tests - application' }
{ #category : 'tests - application' }
StargateApplicationStackTraceDumperTest >> testStackTraceDumper [

| dumper result |
Expand Down
Loading

0 comments on commit a75af8e

Please sign in to comment.