forked from loafle/openapi-generator-original
update sample tests, fix Java tests (#20300)
* replace removed forkMode * remove junit runner where it's not needed * update samples without skipping test files, but skip files named "FILES" * revert overwriting custom tests, add custom java tests to list * add one sample to CircleCI, fix various Java tests
This commit is contained in:
@@ -222,9 +222,9 @@ class PetApiInterfaceTest extends WebTestCase
|
||||
*/
|
||||
protected function genTestData(string $regexp)
|
||||
{
|
||||
$grammar = new \Hoa\File\Read('hoa://Library/Regex/Grammar.pp');
|
||||
$grammar = new \Hoa\File\Read('hoa://Library/Regex/Grammar.pp');
|
||||
$compiler = \Hoa\Compiler\Llk\Llk::load($grammar);
|
||||
$ast = $compiler->parse($regexp);
|
||||
$ast = $compiler->parse($regexp);
|
||||
$generator = new \Hoa\Regex\Visitor\Isotropic(new \Hoa\Math\Sampler\Random());
|
||||
|
||||
return $generator->visit($ast);
|
||||
|
||||
@@ -152,9 +152,9 @@ class StoreApiInterfaceTest extends WebTestCase
|
||||
*/
|
||||
protected function genTestData(string $regexp)
|
||||
{
|
||||
$grammar = new \Hoa\File\Read('hoa://Library/Regex/Grammar.pp');
|
||||
$grammar = new \Hoa\File\Read('hoa://Library/Regex/Grammar.pp');
|
||||
$compiler = \Hoa\Compiler\Llk\Llk::load($grammar);
|
||||
$ast = $compiler->parse($regexp);
|
||||
$ast = $compiler->parse($regexp);
|
||||
$generator = new \Hoa\Regex\Visitor\Isotropic(new \Hoa\Math\Sampler\Random());
|
||||
|
||||
return $generator->visit($ast);
|
||||
|
||||
@@ -219,9 +219,9 @@ class UserApiInterfaceTest extends WebTestCase
|
||||
*/
|
||||
protected function genTestData(string $regexp)
|
||||
{
|
||||
$grammar = new \Hoa\File\Read('hoa://Library/Regex/Grammar.pp');
|
||||
$grammar = new \Hoa\File\Read('hoa://Library/Regex/Grammar.pp');
|
||||
$compiler = \Hoa\Compiler\Llk\Llk::load($grammar);
|
||||
$ast = $compiler->parse($regexp);
|
||||
$ast = $compiler->parse($regexp);
|
||||
$generator = new \Hoa\Regex\Visitor\Isotropic(new \Hoa\Math\Sampler\Random());
|
||||
|
||||
return $generator->visit($ast);
|
||||
|
||||
Reference in New Issue
Block a user