assertEquals( "webobjects.apple", properties.getProperty( "groupId" ) ); assertNotNull( properties.getProperty( "version" ) ); assertEquals( "jar", properties.getProperty( "packaging" ) ); assertEquals( mockJar.getAbsolutePath(), properties.getProperty( "file" ) ); assertEquals( "java-wo-extensions", properties.getProperty( "artifactId" ) );
assertEquals("webobjects.apple", properties.getProperty("groupId")); assertNotNull(properties.getProperty("version")); assertEquals("jar", properties.getProperty("packaging")); assertEquals(mockJar.getAbsolutePath(), properties.getProperty("file")); assertEquals("java-wo-extensions", properties.getProperty("artifactId")); assertNotNull(properties.getProperty("pomFile"));
	public void testFillValidProperties() throws Exception	{		File resourcesPath = FileUtils.toFile( getClass().getResource( "/" ) );		String filePath = "JavaWOExtensions.jar";		File mockJar = new File( resourcesPath, filePath );		Properties properties = mojo.fillProperties( mockJar );		assertEquals( "webobjects.apple", properties.getProperty( "groupId" ) );		assertNotNull( properties.getProperty( "version" ) );		assertEquals( "jar", properties.getProperty( "packaging" ) );		assertEquals( mockJar.getAbsolutePath(), properties.getProperty( "file" ) );		assertEquals( "java-wo-extensions", properties.getProperty( "artifactId" ) );	}