@@ -5,6 +5,7 @@ let path = require('path'),
55 helpers = require ( 'yeoman-test' ) ,
66 read = require ( 'fs-readdir-recursive' ) ,
77 execFile = require ( 'child_process' ) . execFile ,
8+ fs = require ( 'fs-extra' ) ,
89
910 appPath = path . join ( __dirname , '../app' ) ,
1011 targetPath = path . join ( __dirname , 'temp' ) ;
@@ -70,6 +71,7 @@ describe('check simple app generation', function () {
7071 } ) ;
7172
7273 it ( 'creates valid project' , function ( done ) {
74+ fs . copySync ( path . join ( __dirname , 'sources' ) , targetPath + '/testlib/src/main/java' ) ;
7375 this . timeout ( 300000 ) ; //5 min should be enough to download everything
7476 runGradle ( targetPath + '/testlib' , done ) ;
7577 } ) ;
@@ -107,12 +109,13 @@ describe('check multi-module app generation', function () {
107109 assert . file ( read ( appPath + '/templates/gradle-base' ) ) ;
108110 assert . file ( read ( appPath + '/templates/project-base' ) . map ( dotfile ) ) ;
109111 assert . file ( read ( appPath + '/templates/project-multi' ) . map ( dotfile ) ) ;
110- assert . file ( read ( appPath + '/templates/project-multi/bom' ) . map ( subdir ( 'foo-bom' ) ) ) ;
111- assert . file ( read ( appPath + '/templates/project-multi/module' ) . map ( subdir ( 'foo-sample' ) ) ) ;
112+ assert . file ( read ( appPath + '/templates/project-multi-modules /bom' ) . map ( subdir ( 'foo-bom' ) ) ) ;
113+ assert . file ( read ( appPath + '/templates/project-multi-modules /module' ) . map ( subdir ( 'foo-sample' ) ) ) ;
112114 assert . file ( read ( appPath + '/templates/sources' ) . map ( dotfile ) . map ( repackage ) . map ( subdir ( 'foo-sample' ) ) ) ;
113115 } ) ;
114116
115117 it ( 'creates valid project' , function ( done ) {
118+ fs . copySync ( path . join ( __dirname , 'sources' ) , targetPath + '/testlib/foo-sample/src/main/java' ) ;
116119 this . timeout ( 300000 ) ; //5 min should be enough to download everything
117120 runGradle ( targetPath + '/testlib' , done ) ;
118121 } ) ;
0 commit comments