Skip to content

Instantly share code, notes, and snippets.

View gberche-orange's full-sized avatar

Guillaume Berche gberche-orange

  • orange
  • France
View GitHub Profile
@gberche-orange
gberche-orange / BDDMockito.willReturn to Mockito.doReturn
Last active March 30, 2020 09:33
Intellij structural search and replace for converting Mockito calls: BDDMockito.willReturn to Mockito.doReturn
<replaceConfiguration name="BDDMockito.willReturn to Mockito.doReturn" text="org.mockito.BDDMockito.given($object_method$).willReturn($value$)" recursive="false" caseInsensitive="false" type="JAVA" pattern_context="default" reformatAccordingToStyle="false" shortenFQN="true" replacement="org.mockito.Mockito.doReturn($value$).when($object_method$)">
<constraint name="__context__" within="" contains="" />
<constraint name="object_method" within="" contains="" />
<constraint name="value" within="" contains="" />
</replaceConfiguration>
@JsonDeserialize(builder = Catalog.CatalogBuilder.class)
abstract class CatalogMixIn{
}
static class CatalogInstantiator extends ValueInstantiator.Base
{
public CatalogInstantiator() {
#word list used with https://www.wordclouds.com/
#entitites
4 service-plan #000000
4 org-role #000000
4 org #000000
3 user #000000
1 isolation-segment #000000
1 staging-ev-group #000000
1 running-ev-group #000000
1 security-group #000000
{
"type": "object",
"title": "test",
"required": [
"name",
"Description",
"bindable",
"simpleUrl"
],
"validationMessages": {
{
"type": "object",
"title": "This is my title",
"description": "This is my description: object-with-min-max-title-description.json",
"properties": {
"foo": {
"type": "integer",
"minimum": 0,
"maximum": 5,
"title": "foop",
2017-08-31T20:16:52.58+0200 [API/0] OUT Updated app with guid adb17bc2-2a06-45fa-b495-6e86c0b90445 ({"name"=>"cf-etherpad", "instances"=>1, "memory"=>2048, "disk_quota"=>1024, "stack_guid"=>"6c17de72-7a94-45cd-9919-2c9b263fa22a", "buildpack"=>"https://github.com/cloudfoundry/nodejs-buildpack.git#v1.5.27", "environment_json"=>"PRIVATE DATA HIDDEN", "health_check_timeout"=>180})
2017-08-31T20:17:12.46+0200 [API/1] OUT Updated app with guid adb17bc2-2a06-45fa-b495-6e86c0b90445 ({"state"=>"STOPPED"})
2017-08-31T20:17:12.77+0200 [API/0] OUT Creating build for app with guid adb17bc2-2a06-45fa-b495-6e86c0b90445
2017-08-31T20:17:12.87+0200 [API/0] OUT Updated app with guid adb17bc2-2a06-45fa-b495-6e86c0b90445 ({"state"=>"STARTED"})
2017-08-31T20:17:12.90+0200 [STG/0] OUT Creating container
2017-08-31T20:17:13.17+0200 [STG/0] OUT Successfully created container
2017-08-31T20:17:13.17+0200 [STG/0] OUT Downloading app package...
2017-08-31T20:17:14.44+0200 [STG/0] OUT Downloaded app package (16.5M)
2017-08-31T20:17:14.44
2017-08-31T19:50:03.52+0200 [API/0] OUT Creating build for app with guid adb17bc2-2a06-45fa-b495-6e86c0b90445
2017-08-31T19:50:03.62+0200 [API/0] OUT Updated app with guid adb17bc2-2a06-45fa-b495-6e86c0b90445 ({"state"=>"STARTED"})
2017-08-31T19:50:03.63+0200 [STG/0] OUT Creating container
2017-08-31T19:50:03.98+0200 [STG/0] OUT Successfully created container
2017-08-31T19:50:03.98+0200 [STG/0] OUT Downloading app package...
2017-08-31T19:50:06.75+0200 [STG/0] OUT Downloaded app package (19.6M)
2017-08-31T19:50:06.75+0200 [STG/0] OUT Downloading build artifacts cache...
2017-08-31T19:50:06.84+0200 [STG/0] OUT Downloaded build artifacts cache (429.8K)
2017-08-31T19:50:06.84+0200 [STG/0] OUT Staging...
2017-08-31T19:50:10.79+0200 [STG/0] OUT -------> Buildpack version 1.5.27
2017-08-31T18:46:18.52+0200 [API/1] OUT Updated app with guid adb17bc2-2a06-45fa-b495-6e86c0b90445 ({"name"=>"cf-etherpad"})
2017-08-31T18:49:33.91+0200 [API/1] OUT Creating build for app with guid adb17bc2-2a06-45fa-b495-6e86c0b90445
2017-08-31T18:49:33.98+0200 [API/1] OUT Updated app with guid adb17bc2-2a06-45fa-b495-6e86c0b90445 ({"state"=>"STARTED"})
2017-08-31T18:49:34.00+0200 [STG/0] OUT Creating container
2017-08-31T18:49:34.28+0200 [STG/0] OUT Successfully created container
2017-08-31T18:49:34.28+0200 [STG/0] OUT Downloading app package...
2017-08-31T18:49:36.56+0200 [STG/0] OUT Downloaded app package (19.6M)
2017-08-31T18:49:36.56+0200 [STG/0] OUT Downloading build artifacts cache...
2017-08-31T18:49:36.65+0200 [STG/0] OUT Downloaded build artifacts cache (429.5K)
2017-08-31T18:49:36.65+0200 [STG/0] OUT Staging...
2017-08-31T18:54:57.50+0200 [API/1] OUT Creating build for app with guid adb17bc2-2a06-45fa-b495-6e86c0b90445
2017-08-31T18:54:57.56+0200 [API/1] OUT Updated app with guid adb17bc2-2a06-45fa-b495-6e86c0b90445 ({"state"=>"STARTED"})
2017-08-31T18:54:57.58+0200 [STG/0] OUT Creating container
2017-08-31T18:54:57.89+0200 [STG/0] OUT Successfully created container
2017-08-31T18:54:57.89+0200 [STG/0] OUT Downloading app package...
2017-08-31T18:54:57.97+0200 [CELL/0] OUT Successfully destroyed container
2017-08-31T18:55:00.00+0200 [STG/0] OUT Downloaded app package (19.6M)
2017-08-31T18:55:00.00+0200 [STG/0] OUT Downloading build artifacts cache...
2017-08-31T18:55:10.08+0200 [STG/0] OUT Downloaded build artifacts cache (427.6K)
2017-08-31T18:55:10.08+0200 [STG/0] OUT Staging...