juneau-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamesbog...@apache.org
Subject [juneau] branch master updated: Fix build failure.
Date Sun, 22 Apr 2018 13:45:59 GMT
This is an automated email from the ASF dual-hosted git repository.

jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git


The following commit(s) were added to refs/heads/master by this push:
     new d7a8f44  Fix build failure.
d7a8f44 is described below

commit d7a8f44a13405f96f69f7e4cda0689197c7dfaf0
Author: JamesBognar <jamesbognar@apache.org>
AuthorDate: Sun Apr 22 09:45:42 2018 -0400

    Fix build failure.
---
 .../juneau/rest/BasicRestInfoProviderTest.java     |  6 ++-
 .../rest/BasicRestInfoProviderTest_swagger.json    | 63 ++++++++++++++++++++++
 2 files changed, 68 insertions(+), 1 deletion(-)

diff --git a/juneau-rest/juneau-rest-server/src/test/java/org/apache/juneau/rest/BasicRestInfoProviderTest.java
b/juneau-rest/juneau-rest-server/src/test/java/org/apache/juneau/rest/BasicRestInfoProviderTest.java
index 6efdf37..75d42e5 100644
--- a/juneau-rest/juneau-rest-server/src/test/java/org/apache/juneau/rest/BasicRestInfoProviderTest.java
+++ b/juneau-rest/juneau-rest-server/src/test/java/org/apache/juneau/rest/BasicRestInfoProviderTest.java
@@ -48,7 +48,7 @@ public class BasicRestInfoProviderTest {
 			System.out.println("XXX - TestClasspathResourceFinder.findResource("+baseClass+", "+name+",
" + locale + ")");
 			if (name.endsWith(".json")) {
 				System.out.println("XXX - InputStream1=" + BasicRestInfoProvider.class.getResourceAsStream("BasicRestinfoProviderTest_swagger.json"));
-				return BasicRestInfoProvider.class.getResourceAsStream("BasicRestinfoProviderTest_swagger.json");
+				return BasicRestInfoProvider.class.getResourceAsStream("BasicRestInfoProviderTest_swagger.json");
 			}
 			return super.findResource(baseClass, name, locale);
 		}
@@ -715,4 +715,8 @@ public class BasicRestInfoProviderTest {
 		assertObjectEquals("{description:'l-foo',url:'l-bar'}", getSwaggerWithFile(new L05()).getExternalDocs());
 	}
 	
+	//-----------------------------------------------------------------------------------------------------------------
+	// /paths/<path>/<method>/tags
+	//-----------------------------------------------------------------------------------------------------------------
+	
 }
diff --git a/juneau-rest/juneau-rest-server/src/test/resources/org/apache/juneau/rest/BasicRestInfoProviderTest_swagger.json
b/juneau-rest/juneau-rest-server/src/test/resources/org/apache/juneau/rest/BasicRestInfoProviderTest_swagger.json
index 21d719c..3e935ac 100644
--- a/juneau-rest/juneau-rest-server/src/test/resources/org/apache/juneau/rest/BasicRestInfoProviderTest_swagger.json
+++ b/juneau-rest/juneau-rest-server/src/test/resources/org/apache/juneau/rest/BasicRestInfoProviderTest_swagger.json
@@ -46,5 +46,68 @@
 	externalDocs: {
 		description: 's-description',
 		url: 's-url'
+	},
+	paths: {
+		'/path/{foo}': {
+			get: {
+				summary: 's-summary',
+				description: 's-description',
+				operationId: 's-operationId',
+				deprecated: true,
+				consumes: ['s-consumes'],
+				produces: ['s-produces'],
+				tags: ['s-tag'],
+				schemes: ['s-scheme'],
+				externalDocs: {
+					description: 's-description',
+					url: 's-url'
+				},
+				parameters: [
+					{
+						name: 's-name',
+						in: 'query',
+						description: 's-description',
+						type: 'string',
+						format: 's-format',
+						pattern: 's-pattern',
+						collectionFormat: 's-collectionFormat',
+						minimum: 1.0,
+						maximum: 2.0,
+						multipleOf: 3.0,
+						minLength: 1,
+						maxLength: 2,
+						minItems: 3,
+						maxItems: 4,
+						required: true,
+						allowEmptyValue: true,
+						exclusiveMinimum: true,
+						exclusiveMaximum: true,
+						uniqueItems: true,						
+						schemaInfo: {
+						}						
+					}
+				],
+				responses: {
+					100: {description:'s-100-description'}
+				},
+				security: [
+					{foo_auth:['read:foo','write-foo']}
+				]
+			} 
+		}
+	},
+	definitions: {
+		Foo: {
+			type: 'object',
+			properties: {
+				id: {
+					type: 'integer',
+					format: 'int64'
+				}
+			},
+			xml: {
+				name: 'Foo'
+			}
+		}
 	}
 }
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
jamesbognar@apache.org.

Mime
View raw message