Examples of EDBLogEntry


Examples of org.openengsb.core.edb.api.EDBLogEntry

        setOutputMarkupId(true);
        List<EDBLogEntry> history = edbService.getLog("null/null/" + uuid, 0L, System.currentTimeMillis());
        add(new ListView<EDBLogEntry>("history", history) {
            @Override
            protected void populateItem(ListItem<EDBLogEntry> item) {
                EDBLogEntry modelObject = item.getModelObject();
                String committer = modelObject.getCommit().getCommitter();
                Long timestamp = modelObject.getCommit().getTimestamp();
                Date date = new Date(timestamp);

                item.add(new Label("time", DATE_FORMAT.format(date)));
                item.add(new Label("committer", committer));
            }
View Full Code Here

Examples of org.openengsb.core.edb.api.EDBLogEntry

        Locale.setDefault(Locale.ENGLISH);
        edbService = mock(EngineeringDatabaseService.class);
        EDBCommit commit = mock(EDBCommit.class);
        when(commit.getCommitter()).thenReturn("adams");
        when(commit.getTimestamp()).thenReturn(TIMESTAMP);
        final EDBLogEntry logEntry = mock(EDBLogEntry.class);
        when(logEntry.getCommit()).thenReturn(commit);
        when(edbService.getLog(eq("null/null/42"), eq(0L), any(Long.class))).thenReturn(Arrays.asList(logEntry));
        context.putBean("edbService", edbService);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.