Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 1&1 Internet AG, Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 package net.oneandone.jasmin.model;
 import org.junit.Test;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertNull;
 import static org.junit.Assert.assertTrue;
 public class RepositoryTest {
     private World world;
     private Repository repository;
     public void before() throws IOException {
          = new World();
          = Repository.load(new Resolver());
     public void builtIn() {
     @Test(expected = RuntimeException.class)
     public void notFound() throws Exception {
     public void auto() {
         Module module;
         File file;
         module = .get("jasmin-auto-auto1");
         assertEquals(2, module.files().size());
         file = module.files().get(0);
         if (!file.getNormal().getName().endsWith("auto1.js")) {
             file = module.files().get(0);
         file = module.files().get(1);
         module = .get("jasmin-auto-sub-auto2");
         assertEquals(Arrays.asList(.get("jasmin-auto-auto1")), module.dependencies());
         assertEquals(1, module.files().size());
         file = module.files().get(0);
         module = .get("jasmin-auto-sub-only");
         assertEquals(1, module.files().size());
         file = module.files().get(0);
         assertEquals(file.getNormal(), file.getMinimized());
     public void get() throws Exception {
         Module group;
         group = .get("foo");
     public void sequenceOne() throws Exception {
         assertEquals(Arrays.asList("""foo"), .sequence("foo"));
     public void sequenceFirstAsFirst() throws Exception {
         assertEquals(Arrays.asList("two""""foo"), .sequence("two""foo"));
    public void sequenceLastAsLast() throws Exception {
        assertEquals(Arrays.asList("""foo""two"), .sequence("foo""two"));
    public void resolveOne() throws Exception {
    public void resolveTwo() throws Exception {
    public void resolveNot() throws Exception {
    @Test(expected = CyclicDependency.class)
    public void resolveDuplicate() throws Exception {
    private void check(String requestString... expectedthrows Exception {
        References references;
        references = .resolve(Request.parse(request));
        assertEquals("expected " + Strings.toList(expected) + ", go " + referencesexpected.lengthreferences.nodes.size());
        for (int i = 0; i < expected.lengthi++) {
            assertEquals(expected[i], references.nodes.get(i).getName());
New to GrepCode? Check out our FAQ X