[JBoss JIRA] (TEIIDDES-1681) Mockito tests selecting incorrect teiid runtime client
by Paul Richardson (JIRA)
[ https://issues.jboss.org/browse/TEIIDDES-1681?page=com.atlassian.jira.plu... ]
Paul Richardson commented on TEIIDDES-1681:
-------------------------------------------
As an OSGI plugin, mockito is loaded, as a dependency by the first junit test bundle. Thereafter, it is relied on by all subsequent unit test plugins.
Mockito employs objensis to cache mocked classes. In the case of mocking classes from the teiid runtimes, such as Admin, the mocked instance is cached against its class and package name. However, for the teiid runtime plugins, the package and class names are largely identical so there is a danger of an existing class (from the wrong runtime) being returned from the cache rather than creating a new one (from the correct runtime).
Thus, tests based on one version of the runtime client will cache its mocked classes then subsequent tests based on the second runtime client fail since attempts to mock its classes return the wrong mocked classes from the cache, resulting in ClassCastExceptions.
The workaround is to turn the objensis cache off. Mockito 1.9 allows this by adding a Configuration class to the set of tests. This class is loaded by mockito by asking the system classloader for any classes implementing IMockitoConfiguration. However, due to eclipse's bundle class loading system it is impossible for Mockito to uniformly detect a Configuration class, in a test plugin, that will get loaded by the mockito plugin's class loader.
To solve this, the Mockito plugin has been modified to include an additional Configuration class. This class can be called explicitly (at the start of the test-cycle) and provides setters for changing configuration options, including turning off the objensis cache.
> Mockito tests selecting incorrect teiid runtime client
> ------------------------------------------------------
>
> Key: TEIIDDES-1681
> URL: https://issues.jboss.org/browse/TEIIDDES-1681
> Project: Teiid Designer
> Issue Type: Sub-task
> Components: Testing
> Reporter: Paul Richardson
> Assignee: Paul Richardson
> Fix For: 8.1
>
>
> Executing all tests in Eclipse results in mockito-related tests choosing the incorrect teiid runtime client, resulting in tests failing with unexpected results.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 9 months
[JBoss JIRA] (TEIIDDES-1595) 8.1 Documentation
by Barry LaFond (JIRA)
[ https://issues.jboss.org/browse/TEIIDDES-1595?page=com.atlassian.jira.plu... ]
Barry LaFond edited comment on TEIIDDES-1595 at 4/22/13 3:50 PM:
-----------------------------------------------------------------
Proof-reading Teiid Designer Users Guide 8.0 for bugs and changes for 8.1
Chapter 1.0 INTRODUCTION
(NONE)
Chapter 2.0 Dive Right In....
(NONE)
Chapter 3.0 New Model Wizards
( NO CHANGES)
Chapter 4.0 Importers
1) Remove "Import Datatypes (CSV Format)" option (DONE)
2) NEW Import Teiid DDL (DONE)
5.0 Creating and Editing Model Objects
1) Rewrite this section to include New Object Wizards that replaced simple object actions.
Chapter 6. Metadata-specific Modeling
1) Add more content around New Child/Sibling, but refer to the previous section
(DONE)
2) Note that "Source Function" is now wrapped into a standard "New Procedure..." wizard
(DONE)
3) Add section on UDF's (Source or View Models)
Chapter 7. Editing Models and Projects
1) This chapter is getting a make-over due to changes/improvements in model refactoring. (Save for 8.2 release)
2) Additional verbage around VDB validation and Quick-Fix synching of VDBs
Chapter 8. Managing VDBs
1) Views changed in VDB editor (DONE)
2) Need new section on All components of a VDB
- Multi-source Bindings (DONE)
- Data Roles
- User Files
- UDF Jars (DONE)
Appendix C. User Preferences
1) There were some additional User Preferences in 8.1
Appendix D.3. Editors
1) VDB EDITOR CHANGES
(DONE)
was (Author: blafond):
Proof-reading Teiid Designer Users Guide 8.0 for bugs and changes for 8.1
Chapter 1.0 INTRODUCTION
(NONE)
Chapter 2.0 Dive Right In....
(NONE)
Chapter 3.0 New Model Wizards
( NO CHANGES)
Chapter 4.0 Importers
1) Remove "Import Datatypes (CSV Format)" option (DONE)
2) NEW Import Teiid DDL (DONE)
5.0 Creating and Editing Model Objects
1) Rewrite this section to include New Object Wizards that replaced simple object actions.
Chapter 6. Metadata-specific Modeling
1) Add more content around New Child/Sibling, but refer to the previous section
2) Note that "Source Function" is now wrapped into a standard "New Procedure..." wizard
3) Add section on UDF's (Source or View Models)
Chapter 7. Editing Models and Projects
1) This chapter is getting a make-over due to changes/improvements in model refactoring. (Save for 8.2 release)
2) Additional verbage around VDB validation and Quick-Fix synching of VDBs
Chapter 8. Managing VDBs
1) Views changed in VDB editor (DONE)
2) Need new section on All components of a VDB
- Multi-source Bindings (DONE)
- Data Roles
- User Files
- UDF Jars (DONE)
Appendix C. User Preferences
1) There were some additional User Preferences in 8.1
Appendix D.3. Editors
1) VDB EDITOR CHANGES
(DONE)
> 8.1 Documentation
> -----------------
>
> Key: TEIIDDES-1595
> URL: https://issues.jboss.org/browse/TEIIDDES-1595
> Project: Teiid Designer
> Issue Type: Sub-task
> Components: Documentation
> Affects Versions: 8.1
> Reporter: Barry LaFond
> Assignee: Barry LaFond
> Fix For: 8.1
>
>
> Areas of changed or added documentation
> * Multi-Server version support
> * Removal of the Teiid View
> * Create relational object wizards
> * UDF jar support
> * Relational Source and View Model procedure UDF support
> Coordinate with 8.1 What's New wiki doc: https://community.jboss.org/wiki/TeiidDesigner81WhatsNew
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 9 months
[JBoss JIRA] (TEIIDDES-1676) NPE opening VDB containing a UDF jar
by Barry LaFond (JIRA)
[ https://issues.jboss.org/browse/TEIIDDES-1676?page=com.atlassian.jira.plu... ]
Barry LaFond updated TEIIDDES-1676:
-----------------------------------
Attachment: YahooVDB.vdb
> NPE opening VDB containing a UDF jar
> ------------------------------------
>
> Key: TEIIDDES-1676
> URL: https://issues.jboss.org/browse/TEIIDDES-1676
> Project: Teiid Designer
> Issue Type: Bug
> Components: Editors, VDB & Execution
> Affects Versions: 8.1
> Reporter: Barry LaFond
> Assignee: Dan Florian
> Fix For: 8.1
>
> Attachments: YahooVDB.vdb
>
>
> Opening the VDB in the attached model project set throws an NPE. Appears that the editor is processing a VDB property change during creation of the UDF jar tab and the Other User Files tab has not be initialized yet.
> {code}
> java.lang.NullPointerException
> at org.teiid.designer.vdb.ui.editor.VdbEditor.vdbNotification(VdbEditor.java:1931)
> at org.teiid.designer.vdb.ui.editor.VdbEditor$24$1.run(VdbEditor.java:1871)
> at org.teiid.designer.ui.common.util.UiUtil.runInSwtThread(UiUtil.java:464)
> at org.teiid.designer.vdb.ui.editor.VdbEditor$24.propertyChange(VdbEditor.java:1862)
> at org.teiid.designer.vdb.Vdb.notifyChangeListeners(Vdb.java:680)
> at org.teiid.designer.vdb.VdbEntry.setSynchronization(VdbEntry.java:283)
> at org.teiid.designer.vdb.VdbEntry.findFileInWorkspace(VdbEntry.java:175)
> at org.teiid.designer.vdb.ui.editor.VdbEditor$9.getImage(VdbEditor.java:635)
> at org.teiid.designer.vdb.ui.editor.VdbEditor$9.getImage(VdbEditor.java:1)
> at org.teiid.designer.ui.common.table.Table$2.getImage(Table.java:90)
> at org.eclipse.jface.viewers.ColumnLabelProvider.update(ColumnLabelProvider.java:37)
> at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java:152)
> at org.eclipse.jface.viewers.AbstractTableViewer.doUpdateItem(AbstractTableViewer.java:399)
> at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:485)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
> at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:2167)
> at org.eclipse.jface.viewers.AbstractTableViewer.createItem(AbstractTableViewer.java:277)
> at org.eclipse.jface.viewers.AbstractTableViewer.internalRefreshAll(AbstractTableViewer.java:757)
> at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:649)
> at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:636)
> at org.eclipse.jface.viewers.AbstractTableViewer$2.run(AbstractTableViewer.java:592)
> at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1443)
> at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1404)
> at org.eclipse.jface.viewers.AbstractTableViewer.inputChanged(AbstractTableViewer.java:590)
> at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:280)
> at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1690)
> at org.teiid.designer.ui.common.table.Table.setInput(Table.java:230)
> at org.teiid.designer.ui.common.table.TableAndToolBar.setInput(TableAndToolBar.java:129)
> at org.teiid.designer.vdb.ui.editor.VdbEditor.createUdfJarsControl(VdbEditor.java:871)
> at org.teiid.designer.vdb.ui.editor.VdbEditor.createEditorTop(VdbEditor.java:1248)
> at org.teiid.designer.vdb.ui.editor.VdbEditor.createPartControl(VdbEditor.java:1202))
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 9 months
[JBoss JIRA] (TEIIDDES-1664) Select Procedure Type dialog radio button description gets clipped
by Dan Florian (JIRA)
[ https://issues.jboss.org/browse/TEIIDDES-1664?page=com.atlassian.jira.plu... ]
Dan Florian resolved TEIIDDES-1664.
-----------------------------------
Resolution: Done
Pull request merged into master branch.
> Select Procedure Type dialog radio button description gets clipped
> ------------------------------------------------------------------
>
> Key: TEIIDDES-1664
> URL: https://issues.jboss.org/browse/TEIIDDES-1664
> Project: Teiid Designer
> Issue Type: Enhancement
> Components: Dialogs
> Affects Versions: 8.1
> Reporter: Mark Drilling
> Assignee: Dan Florian
> Fix For: 8.1
>
> Attachments: SelectProcedureTypeDialog.png
>
>
> Description text on the "Select Procedure Type" dialog is getting clipped off, seems to be a wrapping issue in the dialog.
> To reproduce:
> 1) Select a Relational View Model in ModelExplorer
> 2) Rt-Click > New Child > Procedure...
> 3) This shows the Select Procedure Type dialog (attached). The description text for the bottom radio button option is incomplete (clipped)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 9 months