use of org.eclipse.linuxtools.rpm.ui.editor.parser.SpecfileDefine in project linuxtools by eclipse.
the class SpecfileDefineTest method testUnderscoreDefine.
@Test
public void testUnderscoreDefine() {
SpecfileDefine blahDefine = specfile.getDefine("__find_requires");
assertEquals(SpecfileDefine.class, blahDefine.getClass());
assertEquals("__find_requires", blahDefine.getName());
assertEquals("%{SOURCE3}", blahDefine.getStringValue());
}
use of org.eclipse.linuxtools.rpm.ui.editor.parser.SpecfileDefine in project linuxtools by eclipse.
the class SpecfileDefineTest method testDefine4.
@Test
public void testDefine4() {
SpecfileDefine blahDefine = specfile.getDefine("blah4");
assertEquals(SpecfileDefine.class, blahDefine.getClass());
assertEquals("blah4", blahDefine.getName());
assertEquals(1, blahDefine.getIntValue());
}
Aggregations