/*******************************************************************************
 * Copyright (c) 2010 Oak Ridge National Laboratory.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 ******************************************************************************/
package org.csstudio.opibuilder.converter.model;

import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

import org.junit.Test;

public class EdmWidgetTest {

    @Test
    public void testEdmWidget() throws EdmException {

        EdmEntity e = new EdmEntity("test");

        EdmWidget w = new EdmWidget(e);
        assertNotNull(w);
        assertTrue(w instanceof EdmEntity);
    }
}
@@ -545,58 +545,14 @@
 sert
-NotNull;%0Aimport static org.junit.Assert.assertTrue
+Equals
 ;%0A%0Ai
@@ -643,16 +643,56 @@
 dmWidget
+ThrowsExceptionIfDefaultFieldsNotPresent
 () throw
@@ -758,30 +758,33 @@
 %22);%0A
-%0A        EdmWidget w =
+        try %7B%0A           
  new
@@ -810,73 +810,125 @@
     
-assertNotNull(w);%0A        assertTrue(w instanceof EdmEntity
+%7D catch (EdmException ex) %7B%0A            assertEquals(ex.getType(), EdmException.INTEGER_FORMAT_ERROR
 );%0A    
+ 
-%7D
+   %7D%0A    %7D%0A
 %0A%7D

update broken EdmWidget test.