[Java] Generate valid code if no Authentication implementations present (#5788)

* generate valid code if no Authentication implementations present

resurrects https://github.com/OpenAPITools/openapi-generator/pull/2861

* remove what I assume are human generated test cases

* need to iterate over authMethods in order to pull out name

* fix another test

* update more tests

* rename hasTokenAuthMethods to hasApiKeyAuthMethods

* remove duplicate methods, fix hasHttpBearerMethods check

* update templates

* update windows java-petstore files

* update windows java-petstore files

* re-generate

* re-generate

* restore samples.ci tests

* restore samples.ci tests
This commit is contained in:
Jon Freedman
2020-05-23 11:36:03 +01:00
committed by GitHub
parent f200122c09
commit 950508fd4b
19 changed files with 288 additions and 280 deletions

View File

@@ -122,7 +122,6 @@ public class ApiClientTest {
}
}
@Ignore("There is no more basic auth in petstore security definitions")
@Test
public void testSetUsernameAndPassword() {
HttpBasicAuth auth = null;