public boolean deleteTestOrders(Connection con)
    {
        boolean didItWork = true;
        ArrayList<Integer> onos = new ArrayList(); //Indeholder ordrenumre på testordre
        
        String SQLString1 = "SELECT ordreno FROM ordre WHERE kundeno = 1";
        String SQLString2 = "DELETE FROM ordredetails WHERE ordreno = ?";
        String SQLString3 = "DELETE FROM ordre WHERE ordreno = ?";
        
        
        PreparedStatement statement = null;
        try 
        {
            statement = con.prepareStatement(SQLString1);
            ResultSet rs = statement.executeQuery();
            
            while(rs.next())
            {
                onos.add(rs.getInt(1)); //OrdreNo på ordre fra testperson
            }
            
            statement = con.prepareStatement(SQLString2);
            for(int i = 0; i < onos.size(); i++)
            {
                if(!onos.get(i).equals(999)) //999 er en testordre - må ikke slettes
                {
                    statement.setInt(1, onos.get(i));
                    if(statement.executeUpdate() == 0)
                    {
                        didItWork = false;
                    }
                }
            }
            
            statement = con.prepareStatement(SQLString3);
            for(int j = 0; j < onos.size(); j++)
            {
                if(!onos.get(j).equals(999))
                {
                    statement.setInt(1, onos.get(j));
                    if(statement.executeUpdate() == 0)
                    {
                        didItWork = false;
                    }
                }
            }
        }
        
        
        catch (Exception e)
        {
            System.out.println("Fejl i TheMapper - deleteTestOrdre");
            didItWork = false;
        }
        
        return didItWork;
    }