Mustafa Sak-5 wrote > Hi, > > you should be able to create any kind of class even inside the test name > space. So I would create the class to be mocked, define the corresponding > interface and create the mocked functions, which the interface is > requiring. > > Now you are able to create and apply that mocked class instance instead of > the original one. > > > Gruß > Mustafa Sak > > Applications & Integration > 1&1 Internet AG | Ernst-Frey-Straße 10 | 76135 Karlsruhe | Germany
Yes, works great. I just qx.Class.define my test object implementing mocks for the interface. Nice. -- View this message in context: http://qooxdoo.678.n2.nabble.com/Mock-object-with-interface-tp7586676p7586682.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel