Package com.upgradingdave.link.checker.models

Examples of com.upgradingdave.link.checker.models.Resource


    }

    @Test
    public void update(){

        Resource orig = (Resource) getTestModels().get(0);

        Resource resource = resourceDao.findById(orig.getId());

        resource.setType("different");
        resourceDao.update(resource);

        Resource result = resourceDao.findById(orig.getId());

        assertEquals(orig.getId(), result.getId());
        assertEquals("different", result.getType());

    }
View Full Code Here


                HttpResponse response = httpclient.execute(httpGet);

                String responseCode = new Integer(response.getStatusLine().getStatusCode()).toString();

                resources.add(new Resource(pageLink, new Date(), responseCode, "page"));

            } catch (IOException e) {
                log.error("Unable to connect. Something really bad happened", e);
            } finally {
                httpGet.releaseConnection();
View Full Code Here

TOP

Related Classes of com.upgradingdave.link.checker.models.Resource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.