<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-34908752.post8036856493562093753..comments</id><updated>2010-08-13T07:46:33.066+01:00</updated><category term='jmock'/><category term='pictures'/><category term='growing object-oriented software'/><category term='news projects'/><category term='specification'/><category term='publications'/><category term='junit4'/><category term='news'/><category term='explanation'/><category term='talk'/><category term='process'/><category term='testability'/><category term='history'/><category term='mocks in action'/><category term='design'/><category term='eclipse'/><category term='book'/><category term='listening to the tests'/><category term='training'/><category term='domain-specific-language'/><category term='ide'/><category term='by the way'/><category term='tip'/><title type='text'>Comments on Mock Objects: Only mock types you own (revisited)</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.mockobjects.com/feeds/8036856493562093753/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34908752/8036856493562093753/comments/default'/><link rel='alternate' type='text/html' href='http://www.mockobjects.com/2008/11/only-mock-types-you-own-revisited.html'/><author><name>Steve Freeman</name><uri>http://www.blogger.com/profile/14771999065792016571</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-34908752.post-2497830979483433261</id><published>2010-08-13T07:46:33.066+01:00</published><updated>2010-08-13T07:46:33.066+01:00</updated><title type='text'>&amp;quot;Only mock types you own&amp;quot; is a &amp;quot;tra...</title><content type='html'>&amp;quot;Only mock types you own&amp;quot; is a &amp;quot;training wheels&amp;quot; rule, that helps to break through common misunderstandings about the technique. Sometimes you have to break it. &lt;br /&gt;&lt;br /&gt;That said, maybe you should be mocking at a level about the OpenGL  layer. Maybe not, but it&amp;#39;s probably worth looking at.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34908752/8036856493562093753/comments/default/2497830979483433261'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34908752/8036856493562093753/comments/default/2497830979483433261'/><link rel='alternate' type='text/html' href='http://www.mockobjects.com/2008/11/only-mock-types-you-own-revisited.html?showComment=1281681993066#c2497830979483433261' title=''/><author><name>Steve Freeman</name><uri>http://www.blogger.com/profile/14771999065792016571</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mockobjects.com/2008/11/only-mock-types-you-own-revisited.html' ref='tag:blogger.com,1999:blog-34908752.post-8036856493562093753' source='http://www.blogger.com/feeds/34908752/posts/default/8036856493562093753' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1489300399'/></entry><entry><id>tag:blogger.com,1999:blog-34908752.post-1718701211790570509</id><published>2010-08-12T15:58:14.530+01:00</published><updated>2010-08-12T15:58:14.530+01:00</updated><title type='text'>Question. I need to verify classes to use OpenGL (...</title><content type='html'>Question. I need to verify classes to use OpenGL (C++). It is possible to mock OpenGL using Google Mocks. &lt;br /&gt;&lt;br /&gt;Normally, I agree completely - don&amp;#39;t mock types you own. However, in order to efficiently automate unit testing for OpenGL related objects, mocking out the relevant parts of the API seems to be the way to do it. This also allows for TDD, even with OpenGL development.&lt;br /&gt;&lt;br /&gt;Note that since OpenGL is actually a procedural API, there&amp;#39;s no mock object per se; the test code is linked against a mock library which provides GMock implementations of OpenGL. The production code thus uses OpenGL directly; only the tests arrange things to allow for mocking.&lt;br /&gt;&lt;br /&gt;Do you folks have any other suggestions or ideas?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34908752/8036856493562093753/comments/default/1718701211790570509'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34908752/8036856493562093753/comments/default/1718701211790570509'/><link rel='alternate' type='text/html' href='http://www.mockobjects.com/2008/11/only-mock-types-you-own-revisited.html?showComment=1281625094530#c1718701211790570509' title=''/><author><name>Mike Jones</name><uri>http://www.blogger.com/profile/17608757096556069037</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mockobjects.com/2008/11/only-mock-types-you-own-revisited.html' ref='tag:blogger.com,1999:blog-34908752.post-8036856493562093753' source='http://www.blogger.com/feeds/34908752/posts/default/8036856493562093753' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1742479766'/></entry></feed>
