Revision 34974 branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.lib/org.gvsig.installer.lib.impl/src/test/java/org/gvsig/installer/lib/impl/creation/MakePluginPackageServiceTest.java

View differences:

MakePluginPackageServiceTest.java
129 129

  
130 130
        PackageInfo packageInfo =
131 131
            makePluginPackageService.getPluginPackageInfo("org.gvsig.wfs");
132
        packageInfo.setAnScript(makePluginPackageService.getDefaultAntScript());
132
        packageInfo.setAntScript(makePluginPackageService.getDefaultAntScript());
133 133

  
134 134
        // Compress the plugin and create the installer compressed file
135 135
        FileOutputStream os = new FileOutputStream(installerFile);
......
160 160

  
161 161
        PackageInfo packageInfo =
162 162
            makePluginPackageService.getPluginPackageInfo("org.gvsig.wcs");
163
        packageInfo.addFileToCopy(resource);
163
        packageInfo.getAuxFiles().add(resource);
164 164

  
165 165
        // Compress the plugin and create the installer compressed file
166 166
        FileOutputStream os = new FileOutputStream(installerFile);
......
173 173
        assertEquals(1, installPackageService.getPackageCount());
174 174
        PackageInfo newInstallerInfo =
175 175
            makePluginPackageService.getPluginPackageInfo(0);
176
        assertEquals(1, newInstallerInfo.getFileToCopySize());
176
        assertEquals(1, newInstallerInfo.getAuxFiles().size());
177 177
    }
178 178
}

Also available in: Unified diff