moduleFile.move(new Path("/TestProject/src/main/java/test/Module.gwt.xml"), true, null);
}
// use project
{
IResource resource = m_project;
ModuleDescription module = Utils.getSingleModule(resource);
assertNull(module);
}
// use "client" folder as IResource
{
IResource resource = getFolder("src/main/java/test/client");
ModuleDescription module = Utils.getSingleModule(resource);
assertModuleDescriptionPath("src/main/java/test/Module.gwt.xml", module);
}
// use resource from "resources" folder
{
IResource resource = setFileContent("src/main/resources/test/client/MyResource.txt", "");
ModuleDescription module = Utils.getSingleModule(resource);
assertModuleDescriptionPath("src/main/java/test/Module.gwt.xml", module);
}
}