Best way to automagically migrate tests from JUnit 3 to JUnit 4?

In my opinion, it cannot be that hard. So let’s try it: 0. Imports You need to import three annotations: import org.junit.After; import org.junit.Before; import org.junit.Test;` After you’ve made the next few changes, you won’t need import junit.framework.TestCase;. 1. Annotate test* Methods All methods beginning with public void test must be preceded by the @Test … Read more

How do I migrate a model out of one django app and into a new one?

How to migrate using south. Lets say we got two apps: common and specific: myproject/ |– common | |– migrations | | |– 0001_initial.py | | `– 0002_create_cat.py | `– models.py `– specific |– migrations | |– 0001_initial.py | `– 0002_create_dog.py `– models.py Now we want to move model common.models.cat to specific app (precisely to … Read more