<div dir="ltr">Hi Helmut,<br><div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-26 16:40 GMT+02:00 Helmut Rohregger <span dir="ltr">&lt;<a href="mailto:helmut.rohregger@gmail.com" target="_blank">helmut.rohregger@gmail.com</a>&gt;</span>:<br>


<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">To clarify things: I am writing a squeak byte code interpreter in Java,<br>
which is still in experimental stage. To test my interpreter, I have<br>
written test cases in squeak, which get executed in my interpreter...<br></blockquote><div><br><br></div><div>I once ported squeaks vm code from C to java. <br>(I did not develope my own interpreter most of the initial code was<br>


copy and pasted and (manually) translated to valid javacode.<br></div><div>(And heavily restructured afterwards.))</div><div><br></div><div>Maybe your are interested in that code, even though you <br>are developing your own and don&#39;t want to port the exising one.<br>


</div><div><br></div><div>The code is pretty old (6-8 years!), but it can load and execute a squeak 3.10 image<br></div><div><br></div><div><br></div><div>regards<br>Nicolai<br></div><div><br></div><div><br><br><br> </div>


<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
- Helmut<br>
<br>
Am <a href="tel:24.04.2014%2011" value="+12404201411" target="_blank">24.04.2014 11</a>:54, schrieb Frank Shearar:<br>
<div><div>&gt; That confuses me, because people usually implement their tests as<br>
&gt; instance methods of a TestCase subclass.<br>
&gt;<br>
&gt; I wouldn&#39;t be surprised if writing your test cases as class-side<br>
&gt; methods didn&#39;t break something in tooling that might well expect to<br>
&gt; see instance methods.<br>
&gt;<br>
&gt; frank<br>
&gt;<br>
&gt; On 23 April 2014 20:09, Helmut Rohregger &lt;<a href="mailto:helmut.rohregger@gmail.com" target="_blank">helmut.rohregger@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Hi Andreas,<br>
&gt;&gt;<br>
&gt;&gt; thanks for your response.<br>
&gt;&gt;<br>
&gt;&gt; This is just a test class, where every single method is a test case. I<br>
&gt;&gt; implemented this class when I started to learn Squeak and implemented<br>
&gt;&gt; this test cases by mistake at the instance side of the test class...<br>
&gt;&gt;<br>
&gt;&gt; - Helmut<br>
&gt;&gt;<br>
&gt;&gt; Am 23.04.2014 18:51, schrieb Andreas Wacknitz:<br>
&gt;&gt;&gt; Hi Helmut,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Am 23.04.2014 um 08:18 schrieb Helmut Rohregger &lt;<a href="mailto:helmut.rohregger@gmail.com" target="_blank">helmut.rohregger@gmail.com</a>&gt;:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Hi,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; because I didn&#39;t get response to my question in the beginners list, I<br>
&gt;&gt;&gt;&gt; post it here.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Is there an easy way to change instance methods to class methods?<br>
&gt;&gt;&gt;&gt; I know it is possible to drag and drop single methods. But I am looking<br>
&gt;&gt;&gt;&gt; for the possibility to move 100+ methods at once.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; - Helmut<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Are you really trying to move 100+ methods within a single class?<br>
&gt;&gt;&gt; If so that sounds utterly wrong. And moving from the instance side to the class side is even worse.<br>
&gt;&gt;&gt; This smells like putting a single class around your old non-OO code.<br>
&gt;&gt;&gt; If you don’t have REALLY good reasons to have such a number of methods in a class you should<br>
&gt;&gt;&gt; consider to refactor the class into several classes.<br>
&gt;&gt;&gt; This wouldn’t prevent you from having the problem to move methods around but would lessen the pain.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Regards,<br>
&gt;&gt;&gt; Andreas<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
<br>
<br>
</div></div></blockquote></div><br></div></div>