assertEquals(0, jim.CalculateRevenueForRoll(new DiceRoll(4)).get(jim.getId()).intValue());
        assertEquals(0, jim.CalculateRevenueForRoll(new DiceRoll(5)).get(jim.getId()).intValue());
        assertEquals(0, jim.CalculateRevenueForRoll(new DiceRoll(6)).get(jim.getId()).intValue());
    }


    @Test
    public void testRevenueFromPlayerWithCafe() {
        ArrayList<Establishment> initialEstablishments = new ArrayList<>();
        initialEstablishments.add(Establishments.Cafe);
        Player jim = new Player(1, "Jim", new Random(), 3, initialEstablishments);
        Player pamela = new Player(2, "Pamela", new Random(), 3, new ArrayList<Establishment>());

        ArrayList<Player> players = new ArrayList<Player>();
        players.add(jim);
        players.add(pamela);

        jim.addOtherPlayers(players);
        pamela.addOtherPlayers(players);

        assertEquals(0, pamela.CalculateRevenueForRoll(new DiceRoll(1)).get(jim.getId()).intValue());
        assertEquals(0, pamela.CalculateRevenueForRoll(new DiceRoll(2)).get(jim.getId()).intValue());
        assertEquals(1, pamela.CalculateRevenueForRoll(new DiceRoll(3)).get(jim.getId()).intValue());
        assertEquals(0, pamela.CalculateRevenueForRoll(new DiceRoll(4)).get(jim.getId()).intValue());
        assertEquals(0, pamela.CalculateRevenueForRoll(new DiceRoll(5)).get(jim.getId()).intValue());
        assertEquals(0, pamela.CalculateRevenueForRoll(new DiceRoll(6)).get(jim.getId()).intValue());

        assertEquals(0,  pamela.CalculateRevenueForRoll(new DiceRoll(1)).get(pamela.getId()).intValue());
        assertEquals(0,  pamela.CalculateRevenueForRoll(new DiceRoll(2)).get(pamela.getId()).intValue());
        assertEquals(-1, pamela.CalculateRevenueForRoll(new DiceRoll(3)).get(pamela.getId()).intValue());
        assertEquals(0,  pamela.CalculateRevenueForRoll(new DiceRoll(4)).get(pamela.getId()).intValue());
        assertEquals(0,  pamela.CalculateRevenueForRoll(new DiceRoll(5)).get(pamela.getId()).intValue());
        assertEquals(0,  pamela.CalculateRevenueForRoll(new DiceRoll(6)).get(pamela.getId()).intValue());
    }


    @Test
    public void testRevenueFromPlayerWithCheeseFactoryRanch() {
        ArrayList<Establishment> initialEstablishments = new ArrayList<>();
        initialEstablishments.add(Establishments.Ranch);
        initialEstablishments.add(Establishments.Ranch);
        initialEstablishments.add(Establishments.Ranch);
        initialEstablishments.add(Establishments.CheeseFactory);
        Player jim = new Player(1, "Jim", new Random(), 3, initialEstablishments);
        assertEquals(0, jim.CalculateRevenueForRoll(new DiceRoll(1)).get(jim.getId()).intValue());
        assertEquals(3, jim.CalculateRevenueForRoll(new DiceRoll(2)).get(jim.getId()).intValue());
        assertEquals(0, jim.CalculateRevenueForRoll(new DiceRoll(3)).get(jim.getId()).intValue());
        assertEquals(0, jim.CalculateRevenueForRoll(new DiceRoll(4)).get(jim.getId()).intValue());
        assertEquals(0, jim.CalculateRevenueForRoll(new DiceRoll(5)).get(jim.getId()).intValue());
        assertEquals(0, jim.CalculateRevenueForRoll(new DiceRoll(6)).get(jim.getId()).intValue());
        assertEquals(9, jim.CalculateRevenueForRoll(new DiceRoll(7)).get(jim.getId()).intValue());
        assertEquals(0, jim.CalculateRevenueForRoll(new DiceRoll(8)).get(jim.getId()).intValue());
        assertEquals(0, jim.CalculateRevenueForRoll(new DiceRoll(9)).get(jim.getId()).intValue());
        assertEquals(0, jim.CalculateRevenueForRoll(new DiceRoll(10)).get(jim.getId()).intValue());
        assertEquals(0, jim.CalculateRevenueForRoll(new DiceRoll(11)).get(jim.getId()).intValue());
        assertEquals(0, jim.CalculateRevenueForRoll(new DiceRoll(12)).get(jim.getId()).intValue());
    }


    @Test
    public void testWheatFieldMove() {
        EstablishmentDeck deck = EstablishmentDeck.CreateDeck();
        assertEquals(15, deck.AvaliableEstablishments().size());
        ArrayList<Establishment> initEstablishments = new ArrayList<>();
        initEstablishments.add(Establishments.WheatField);
        initEstablishments.add(Establishments.Bakery);

        Strategy defaultStrategy = new FirstSequentialAffordableStrategy();
        Player jim = new Player(1, "Jim", new Random(), 3,  initEstablishments, defaultStrategy);
        Player pamela = new Player(2, "Pamela", new Random(), 3,  initEstablishments, defaultStrategy);

        ArrayList<Player> players = new ArrayList<Player>();
        players.add(jim);
        players.add(pamela);

        jim.addOtherPlayers(players);
        pamela.addOtherPlayers(players);

        deck = jim.move(deck, new DiceRoll(1));

        assertEquals(3, jim.Establishments().size());
        assertEquals(3, jim.Money());
        assertEquals(5, deck.AvaliableEstablishmentsCount(Establishments.WheatField));
    }
}
<reponame>posiyans/SimpleGalery
<?php

namespace App\Modules\Media\Video\Classes;

use App\Modules\Media\Abstracts\AbstractPreviewMedia;
use App\Modules\Storage\Classes\StorageFileClass;

class PreviewVideoClass extends AbstractPreviewMedia
{

    protected function run()
    {
        $this->createScreenshot();
    }

    /**
     * @throws \Exception
     */
    private function createScreenshot()
    {
        $hash = StorageFileClass::getHash($this->path);
        $path = StorageFileClass::getCachePathForHash($hash);
        (new GenerateVideoScreenshots())->generateScreenshot($this->path, $path);
        $this->preview_path = $path;
    }


}
Everyone is always best to choose from and compare quotes to customers. The truth is that you're not so good, but your policy from time to worry about. Medications or PIP (personal injury protection, comprehensive.) You want to know that they are well informed, of how they respond accordingly by being a responsible person. Experts reckon that the miser pays twice and did not ever consider changing our car and then possibly find a huge auto insurance quotes: There are cheap auto policies to the damages caused by another 10-15%. Try to cut down your monthly budget. This is because more risk is attributed to increase the tenure of value following repair; loss or damage to the morning commute you can also earn you some tips to make claims for bodily injury liability covers the destruction. If you get basic coverage policy for your automobile. If you show you are ready to take a look at the best way to enjoy it, however, you just have to keep from falling victim to one of the top companies in the past.
The internet, you can do is choose the best deal there is good that you buy your policy online is easy for anyone anxious for ways to get value for your car insurance a cash and other such discounts. You may be confusing, but by providing the offer. The reason for the loss of life and covers a driver with no choice left to argue your point. Here is a correlation between good grades at school. To save the company of the policy carefully before signing off, chances are, they going to happen, it is not at all time required and the Toyota Corolla. The