org.eclipse.emf.ecp.view.table.ui.swt.test
Class SWTTableDatabindingLabel_PTest

java.lang.Object
  extended by org.eclipse.emf.ecp.view.table.ui.swt.test.SWTTableDatabindingLabel_PTest

public class SWTTableDatabindingLabel_PTest
extends Object

JUnit tests for TableControlSWTRenderer testing the data binding of the table.

Author:
Lucas Koehler

Constructor Summary
SWTTableDatabindingLabel_PTest()
           
 
Method Summary
 void setUp()
          Set up executed before every test.
 void testDatabindingServiceUsageAddToModel()
          Tests the binding from the model to the table for the addition of a new element to the model.
 void testDatabindingServiceUsageChangeModel()
          Tests the binding from the model to the table for the change of an element of the model.
 void testDatabindingServiceUsageInitialBinding()
          Tests the initial binding from the model to the table.
 void testDatabindingServiceUsageRemoveFromModel()
          Tests the binding from the model to the table for the removal of a element from the model .
 void testLabelServiceUsage()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SWTTableDatabindingLabel_PTest

public SWTTableDatabindingLabel_PTest()
Method Detail

setUp

public void setUp()
           throws DatabindingFailedException,
                  NoLabelFoundException
Set up executed before every test. Mocks and registers the databinding and label service. Creates a new TableControlSWTRenderer to be tested. Mocks needed parameters and contents (e.g. VControl, ViewModelContext).

Throws:
DatabindingFailedException
NoLabelFoundException

testLabelServiceUsage

public void testLabelServiceUsage()
                           throws NoRendererFoundException,
                                  NoPropertyDescriptorFoundExeption,
                                  DatabindingFailedException
Throws:
NoRendererFoundException
NoPropertyDescriptorFoundExeption
DatabindingFailedException

testDatabindingServiceUsageInitialBinding

public void testDatabindingServiceUsageInitialBinding()
                                               throws NoRendererFoundException,
                                                      NoPropertyDescriptorFoundExeption,
                                                      DatabindingFailedException
Tests the initial binding from the model to the table.

Throws:
NoRendererFoundException - Renderer could not be found
NoPropertyDescriptorFoundExeption - Property descriptor could not be found
DatabindingFailedException - if the databinidng failed

testDatabindingServiceUsageAddToModel

public void testDatabindingServiceUsageAddToModel()
                                           throws NoRendererFoundException,
                                                  NoPropertyDescriptorFoundExeption,
                                                  DatabindingFailedException
Tests the binding from the model to the table for the addition of a new element to the model.

Throws:
NoRendererFoundException - Renderer could not be found
NoPropertyDescriptorFoundExeption - Property descriptor could not be found
DatabindingFailedException - if the databinidng failed

testDatabindingServiceUsageRemoveFromModel

public void testDatabindingServiceUsageRemoveFromModel()
                                                throws NoRendererFoundException,
                                                       NoPropertyDescriptorFoundExeption,
                                                       DatabindingFailedException
Tests the binding from the model to the table for the removal of a element from the model .

Throws:
NoRendererFoundException - Renderer could not be found
NoPropertyDescriptorFoundExeption - Property descriptor could not be found
DatabindingFailedException - if the databinidng failed

testDatabindingServiceUsageChangeModel

public void testDatabindingServiceUsageChangeModel()
                                            throws NoRendererFoundException,
                                                   NoPropertyDescriptorFoundExeption,
                                                   DatabindingFailedException
Tests the binding from the model to the table for the change of an element of the model.

Throws:
NoRendererFoundException - Renderer could not be found
NoPropertyDescriptorFoundExeption - Property descriptor could not be found
DatabindingFailedException - if the databinidng failed


Copyright © 2015. All Rights Reserved.