urn_perun_facility_attribute_def_def_homeMountPoints extends FacilityAttributesModuleAbstract implements FacilityAttributesModuleImplApi { @Override public void checkAttributeSemantics(PerunSessionImpl perunSession, Facility facility, Attribute attribute) throws WrongReferenceAttributeValueException { if (attribute.getValue() == null) throw new WrongReferenceAttributeValueException(attribute, "Attribute cannot be null."); }  @Override void checkAttributeSyntax(PerunSessionImpl perunSession, Facility facility, Attribute attribute); @Override void checkAttributeSemantics(PerunSessionImpl perunSession, Facility facility, Attribute attribute); @Override Attribute fillAttribute(PerunSessionImpl session, Facility facility, AttributeDefinition attribute); @Override AttributeDefinition getAttributeDefinition();  }
@Test(expected= WrongReferenceAttributeValueException.class) public void testCheckAttributeSemanticsEmptyAttribute() throws Exception { System.out.println("testCheckAttributeSemanticsEmptyAttribute()"); classInstance.checkAttributeSemantics(session, new Facility(), attribute); }
@Test public void testCheckAttributeSemanticsCorrect() throws Exception { System.out.println("testCheckAttributeSemanticsCorrect()"); ArrayList<String> homeMountPts= new ArrayList<>(); homeMountPts.add("/mnt/mymountpoint1"); attribute.setValue(homeMountPts); classInstance.checkAttributeSemantics(session, new Facility(), attribute); }