@Test public final void testProfileOptionUserAgent() { Heritrix3Profile profile = new Heritrix3Profile(); Heritrix3ProfileOptions profileOptions = profile.getHeritrix3ProfileOptions(); assertEquals("Mozilla/5.0 (compatible; heritrix/@VERSION@ +@OPERATOR_CONTACT_URL@)", profileOptions.getUserAgentTemplate()); assertEquals("Mozilla/5.0 (compatible; heritrix/@VERSION@ +", profileOptions.getUserAgent()); profileOptions.setUserAgent("Mozilla/5.0 (compatible; heritrix/3.3.0 +"); assertEquals("Mozilla/5.0 (compatible; heritrix/3.3.0 +@OPERATOR_CONTACT_URL@)", profileOptions.getUserAgentTemplate()); assertEquals("Mozilla/5.0 (compatible; heritrix/3.3.0 +", profileOptions.getUserAgent()); assertEquals("Mozilla/5.0 (compatible; heritrix/3.3.0 +", profileOptions.getUserAgent()); profileOptions.setUserAgent("Mozilla/5.0 (compatible; heritrix/3.3.0 +"); profileOptions.setUserAgent("Mozilla/5.0 (compatible; heritrix/3.3.0 +"); assertEquals("Mozilla/5.0 (compatible; heritrix/3.3.0 +@OPERATOR_CONTACT_URL@)", profileOptions.getUserAgentTemplate()); assertEquals("Mozilla/5.0 (compatible; heritrix/3.3.0 +", profileOptions.getUserAgent()); }
public Heritrix3ProfileOptions getHeritrix3ProfileOptions() { return heritrix3ProfileOptions; }
Heritrix3Profile { public Heritrix3ProfileOptions getHeritrix3ProfileOptions() { return heritrix3ProfileOptions; } }
Heritrix3Profile { public Heritrix3ProfileOptions getHeritrix3ProfileOptions() { return heritrix3ProfileOptions; } Heritrix3Profile();  Heritrix3Profile(Heritrix3ProfileOptions heritrix3ProfileOptions);  Heritrix3Profile(String profileXml, boolean imported);  Heritrix3Profile(String profileXml); }
Heritrix3Profile { public Heritrix3ProfileOptions getHeritrix3ProfileOptions() { return heritrix3ProfileOptions; } Heritrix3Profile();  Heritrix3Profile(Heritrix3ProfileOptions heritrix3ProfileOptions);  Heritrix3Profile(String profileXml, boolean imported);  Heritrix3Profile(String profileXml); String toProfileXml(); Heritrix3ProfileOptions getHeritrix3ProfileOptions(); void setHeritrix3ProfileOptions(Heritrix3ProfileOptions heritrix3ProfileOptions); String getProfileXml(); void setProfileXml(String profileXml); }
Heritrix3Profile { public Heritrix3ProfileOptions getHeritrix3ProfileOptions() { return heritrix3ProfileOptions; } Heritrix3Profile();  Heritrix3Profile(Heritrix3ProfileOptions heritrix3ProfileOptions);  Heritrix3Profile(String profileXml, boolean imported);  Heritrix3Profile(String profileXml); String toProfileXml(); Heritrix3ProfileOptions getHeritrix3ProfileOptions(); void setHeritrix3ProfileOptions(Heritrix3ProfileOptions heritrix3ProfileOptions); String getProfileXml(); void setProfileXml(String profileXml);  }