input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testSwapInteger ( ) { final int [ ] array = new int [ ] { 4 , 8 , 12 , 15 , 18 } ; org . apache . sis . util . ArraysExt . swap ( array , 1 , 3 ) ; "<AssertPlaceHolder>" ; } swap ( java . lang . Object [ ] , int , int ) { final java . lang . Object t = data [ i0 ] ; data [ i0 ] = data [ i1 ] ; data [ i1 ] = t ; }
org . junit . Assert . assertArrayEquals ( new int [ ] { 4 , 15 , 12 , 8 , 18 } , array )
testNumberOfColumns ( ) { de . metanome . backend . input . database . ResultSetIterator resultSetIterator = new de . metanome . backend . input . database . ResultSetIterator ( twoLinesResultSetFixture . getTestData ( ) ) ; "<AssertPlaceHolder>" ; } numberOfColumns ( ) { return numberOfColumns ; }
org . junit . Assert . assertEquals ( twoLinesResultSetFixture . numberOfColumns ( ) , resultSetIterator . numberOfColumns ( ) )
id ( ) { uc . setId ( "10" ) ; "<AssertPlaceHolder>" ; } getId ( ) { return this . id ; }
org . junit . Assert . assertEquals ( "10" , uc . getId ( ) )
whenGetClassHierarchyIsCalledWithStaticInnerClass_returnedStackOnlyContainsStaticInnerClass ( ) { java . util . Stack < java . lang . Class < ? > > expectedStack = stackForClasses ( Class1stLevel . StaticClass2ndLevel . class ) ; java . util . Stack < java . lang . Class < ? > > classHierarchy = de . bechte . junit . r...
org . junit . Assert . assertThat ( classHierarchy , is ( equalTo ( expectedStack ) ) )
isValidStripsJavaElFromExceptionMessage ( ) { java . lang . String value = "value<sp>${java<sp>el}<sp>{el}" ; when ( scheduleFactory . cron ( any ( java . util . Date . class ) , eq ( value ) ) ) . thenThrow ( new java . lang . IllegalArgumentException ( value ) ) ; when ( context . buildConstraintViolationWithTemplate...
org . junit . Assert . assertThat ( isValid , org . hamcrest . Matchers . is ( false ) )
test ( ) { int N = 16 ; int [ ] moves = new int [ N ] ; java . util . Arrays . fill ( moves , ( - 1 ) ) ; "<AssertPlaceHolder>" ; } getMinDiceThrows ( int [ ] , int ) { java . util . Queue < net . neoremind . mycode . argorithm . graph . SnakeAndLadderProblem . Vertex > queue = new java . util . LinkedList ( ) ; net . ...
org . junit . Assert . assertThat ( getMinDiceThrows ( moves , N ) , org . hamcrest . Matchers . is ( 3 ) )
checkConnection ( ) { int uID = java . lang . Integer . parseInt ( iCECore . connect ( ) ) ; "<AssertPlaceHolder>" ; return ; } connect ( ) { return "1" ; }
org . junit . Assert . assertTrue ( ( uID > 0 ) )
testDPLLReturnsFalseWhenOneClauseFalseInModel ( ) { aima . core . logic . propositional . kb . data . Model model = new aima . core . logic . propositional . kb . data . Model ( ) ; model = model . union ( new aima . core . logic . propositional . parsing . ast . PropositionSymbol ( "A" ) , true ) . union ( new aima . ...
org . junit . Assert . assertEquals ( false , satisfiable )
testTrashVersionDeletionWhenRestoringFromTrash ( ) { int initialTrashVersionCount = com . liferay . trash . service . TrashVersionLocalServiceUtil . getTrashVersionsCount ( ) ; com . liferay . wiki . trash . test . WikiPageDependentsTrashHandlerTest . RelatedPages relatedPages = buildRelatedPages ( ) ; com . liferay . ...
org . junit . Assert . assertEquals ( initialTrashVersionCount , com . liferay . trash . service . TrashVersionLocalServiceUtil . getTrashVersionsCount ( ) )
longString5 ( ) { org . diirt . support . ca . JCAChannelHandler channel = new org . diirt . support . ca . JCAChannelHandler ( "test.$" , dataSource ) ; "<AssertPlaceHolder>" ; } isLongString ( ) { return longString ; }
org . junit . Assert . assertThat ( channel . isLongString ( ) , equalTo ( true ) )
testPost ( ) { javax . ws . rs . client . Invocation . Builder request = org . jboss . resteasy . test . rx . rxjava2 . Rx2SingleServerAsyncTest . client . target ( org . jboss . resteasy . test . rx . rxjava2 . Rx2SingleServerAsyncTest . generateURL ( "/post/string" ) ) . request ( ) ; javax . ws . rs . core . Respons...
org . junit . Assert . assertEquals ( "a" , response . readEntity ( java . lang . String . class ) )
testSerialization ( ) { org . jfree . chart . renderer . category . StandardBarPainter p1 = new org . jfree . chart . renderer . category . StandardBarPainter ( ) ; org . jfree . chart . renderer . category . StandardBarPainter p2 = ( ( org . jfree . chart . renderer . category . StandardBarPainter ) ( org . jfree . ch...
org . junit . Assert . assertEquals ( p1 , p2 )
shouldReturnTruncatedVersionOnRelease ( ) { com . inventage . tools . versiontiger . internal . impl . OsgiVersionImpl version = new com . inventage . tools . versiontiger . internal . impl . OsgiVersionImpl ( "1.2" , versionFactory ) ; java . lang . String result = version . toString ( ) ; "<AssertPlaceHolder>" ; } to...
org . junit . Assert . assertEquals ( "1.2" , result )
testHmacSha1 ( ) { java . lang . String key = "abcd1234" ; java . lang . String val = "your<sp>mother<sp>is<sp>a<sp>hedgehog" ; byte [ ] expected = new byte [ ] { - 21 , 2 , 47 , - 101 , 9 , - 40 , 18 , 43 , 76 , 117 , - 51 , 115 , - 122 , - 91 , 39 , 26 , - 18 , 122 , 30 , 90 } ; byte [ ] hmac = org . apache . shindig...
org . junit . Assert . assertArrayEquals ( expected , hmac )
testfindAll ( ) { org . linagora . linshare . mongo . entities . SafeDetail safeDetail = new org . linagora . linshare . mongo . entities . SafeDetail ( internal . getLsUuid ( ) , workGroup . getLsUuid ( ) , org . linagora . linshare . repository . mongodb . SafeDetailRepositoryTest . DESCRIPTION ) ; safeDetailMongoRep...
org . junit . Assert . assertEquals ( exist . iterator ( ) . next ( ) . getAccountUuid ( ) , internal . getLsUuid ( ) )
shouldReflectChangedDescription ( ) { vdb . setDescription ( "test" ) ; "<AssertPlaceHolder>" ; } getDescription ( ) { return this . description ; }
org . junit . Assert . assertThat ( vdb . getDescription ( ) , org . hamcrest . core . Is . is ( "test" ) )
testCreateParamsNullURL ( ) { java . util . Map < java . lang . String , java . io . Serializable > params = getServiceExtension ( ) . createParams ( null ) ; "<AssertPlaceHolder>" ; } createParams ( java . net . URL ) { org . locationtech . udig . catalog . PostgisServiceExtension2 serviceFactory = new org . locationt...
org . junit . Assert . assertNull ( params )
iterator ( ) { org . apache . pdfbox . pdmodel . interactive . documentnavigation . outline . PDOutlineItem first = new org . apache . pdfbox . pdmodel . interactive . documentnavigation . outline . PDOutlineItem ( ) ; root . addFirst ( first ) ; root . addLast ( new org . apache . pdfbox . pdmodel . interactive . docu...
org . junit . Assert . assertEquals ( 3 , counter )
getGroupDisplayName ( ) { java . lang . String group = "TelnetClients" ; com . ibm . websphere . simplicity . log . Log . info ( com . ibm . ws . security . wim . adapter . ldap . fat . URAPIs_ADLDAP_NoIdTest . c , "getGroupDisplayName" , "Checking<sp>with<sp>a<sp>valid<sp>group." ) ; "<AssertPlaceHolder>" ; } getGroup...
org . junit . Assert . assertEquals ( "TelnetClients" , com . ibm . ws . security . wim . adapter . ldap . fat . URAPIs_ADLDAP_NoIdTest . servlet . getGroupDisplayName ( group ) )
optionSomeSerializeTest ( ) { com . fasterxml . jackson . databind . ObjectWriter writer = mapper ( ) . writer ( ) ; java . lang . String result = writer . writeValueAsString ( ru . yandex . bolts . collection . Option . some ( 1 ) ) ; "<AssertPlaceHolder>" ; } mapper ( ) { com . fasterxml . jackson . databind . Object...
org . junit . Assert . assertEquals ( "1" , result )
testDoMainInstallBundleWithLeadingSlash ( ) { org . eclipse . concierge . test . util . SyntheticBundleBuilder builder = org . eclipse . concierge . test . util . SyntheticBundleBuilder . newBuilder ( ) ; builder . bundleSymbolicName ( "testDoMainInstallBundleWithLeadingSlash" ) ; java . io . File f = builder . asFile ...
org . junit . Assert . assertNotNull ( framework )
testScoreError ( ) { final java . io . InputStream inputStream = new java . io . FileInputStream ( "target/test-classes/result/$sift_result_sample_from_docs.json" ) ; final com . mcac0006 . siftscience . result . domain . SiftScienceResponse responseFromSS = com . mcac0006 . siftscience . SiftScienceHelper . deserializ...
org . junit . Assert . assertEquals ( responseToAssertAgainst , responseFromSS )
testWriterCloseIfOnlyUser ( ) { final java . util . concurrent . atomic . AtomicInteger closeCount = new java . util . concurrent . atomic . AtomicInteger ( 0 ) ; final org . apache . nifi . provenance . lucene . SimpleIndexManager mgr = new org . apache . nifi . provenance . lucene . SimpleIndexManager ( new org . apa...
org . junit . Assert . assertEquals ( 1 , closeCount . get ( ) )
itShouldReturnDateFromString ( ) { java . util . Date actual = hydrograph . engine . transformation . standardfunctions . DateFunctions . getDateFromString ( "01-02-2017" , "dd-MM-yyyy" ) ; "<AssertPlaceHolder>" ; } getDateFromString ( T , java . lang . String ) { if ( ( inputDateInStringFormat == null ) || ( dateForma...
org . junit . Assert . assertNotNull ( actual )
testMultipleFiveCycles ( ) { java . lang . String multipleFiveCycle = "C1C(CC2)CCC12" ; java . lang . String signatureString = this . canonicalStringFromSmiles ( multipleFiveCycle ) ; java . lang . String expected = "[C]([C]([C]([C,0]))[C]([C]([C,0]))[C]([C,0]))" ; "<AssertPlaceHolder>" ; } canonicalStringFromSmiles ( ...
org . junit . Assert . assertEquals ( expected , signatureString )
nameBinary ( ) { byte [ ] name = "binary" . getBytes ( ) ; client . clientSetname ( name ) ; "<AssertPlaceHolder>" ; } clientGetnameBinary ( ) { checkIsInMultiOrPipeline ( ) ; client . clientGetname ( ) ; return client . getBinaryBulkReply ( ) ; }
org . junit . Assert . assertArrayEquals ( name , client . clientGetnameBinary ( ) )
testBytes ( ) { byte [ ] value = com . alicloud . openservices . tablestore . common . TestUtil . randomBytes ( 100000 ) ; com . alicloud . openservices . tablestore . model . ColumnValue v = com . alicloud . openservices . tablestore . model . ColumnValue . fromBinary ( value ) ; "<AssertPlaceHolder>" ; checkType ( v ...
org . junit . Assert . assertArrayEquals ( v . asBinary ( ) , value )
testExportsTheVersionAfterDeletingOnStaging ( ) { com . liferay . exportimport . kernel . lar . ExportImportThreadLocal . setPortletStagingInProcess ( true ) ; try { com . liferay . portal . kernel . repository . model . FileEntry fileEntry = addStagedModel ( stagingGroup , addCompanyDependencies ( ) ) ; exportImportSt...
org . junit . Assert . assertEquals ( fileEntry . getVersion ( ) , importedFileEntry . getVersion ( ) )
concurrentInsertionsAndReads ( ) { org . apache . bookkeeper . util . collections . ConcurrentLongHashMap < java . lang . String > map = new org . apache . bookkeeper . util . collections . ConcurrentLongHashMap ( ) ; java . util . concurrent . ExecutorService executor = java . util . concurrent . Executors . newCached...
org . junit . Assert . assertEquals ( map . size ( ) , ( n * nThreads ) )
testMultiple ( ) { java . util . LinkedList < com . hp . alm . ali . idea . navigation . Candidate > list = new java . util . LinkedList < com . hp . alm . ali . idea . navigation . Candidate > ( ) ; java . lang . String value = "prefix<sp>http://web.server.com/path<sp>middle<sp>https://web.server.com/path2<sp>suffix" ...
org . junit . Assert . assertEquals ( 2 , list . size ( ) )
testCreate ( ) { org . oscarehr . common . model . ConsultationServices entity = new org . oscarehr . common . model . ConsultationServices ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelClass ( entity ) ; dao . persist ( entity ) ; "<AssertPlaceHolder>" ; } getId ( ) { retu...
org . junit . Assert . assertNotNull ( entity . getId ( ) )
testVerschillendeVolgnummersMaarDezelfdeNaam ( ) { java . util . List < nl . bzk . brp . model . bericht . kern . PersoonVoornaamBericht > persoonVoornamen = new java . util . ArrayList < nl . bzk . brp . model . bericht . kern . PersoonVoornaamBericht > ( ) ; nl . bzk . brp . model . bericht . kern . PersoonVoornaamBe...
org . junit . Assert . assertTrue ( validator . isValid ( persoonVoornamen , null ) )
testIsPi ( ) { if ( com . bitplan . obdii . Raspberry . isPi ( ) ) { "<AssertPlaceHolder>" ; } } getBrightness ( ) { java . lang . Integer brightness = null ; java . io . File brightnessFile = new java . io . File ( com . bitplan . obdii . Raspberry . brightnessFilename ) ; if ( brightnessFile . canRead ( ) ) { try { j...
org . junit . Assert . assertNotNull ( com . bitplan . obdii . Raspberry . getBrightness ( ) )
handleGetObject ( ) { doReturn ( lsMock ) . when ( dbm ) . getLocalizedDataService ( any ( org . oscm . ui . common . ServiceAccess . class ) ) ; java . util . Properties properties = new java . util . Properties ( ) ; properties . put ( "key" , "value" ) ; doReturn ( properties ) . when ( lsMock ) . loadMessagePropert...
org . junit . Assert . assertEquals ( "value" , value )
useAlreadyExistsTsLintOutput_ifConfigSaysToUseTsLintOutput ( ) { this . config . setPathToTsLintOutput ( "path/to/output.json" ) ; doReturn ( mock ( java . io . BufferedReader . class ) ) . when ( this . executorImpl ) . getBufferedReaderForFile ( any ( java . io . File . class ) ) ; java . util . List < java . lang . ...
org . junit . Assert . assertEquals ( 1 , result . size ( ) )
verifyMaxClusterSizeIsSameAsDynamicSizeForDynamicCluster ( ) { oracle . kubernetes . operator . wlsconfig . WlsClusterConfig wlsClusterConfig = new oracle . kubernetes . operator . wlsconfig . WlsClusterConfig ( "cluster1" , oracle . kubernetes . operator . wlsconfig . WlsClusterConfigTest . createDynamicServersConfig ...
org . junit . Assert . assertEquals ( 5 , wlsClusterConfig . getMaxClusterSize ( ) )
getExternalPriceModelForService ( ) { org . oscm . billing . external . pricemodel . service . PriceModel priceModel = new org . oscm . billing . external . pricemodel . service . PriceModel ( org . oscm . internal . pricemodel . external . ExternalPriceModelServiceBeanTest . PRICE_MODEL_UUID ) ; org . oscm . internal ...
org . junit . Assert . assertEquals ( org . oscm . internal . pricemodel . external . ExternalPriceModelServiceBeanTest . PRICE_MODEL_UUID , result . getId ( ) )
toString_A$ ( ) { com . m3 . scalaflavor4j . RichFunction4 < java . lang . String , java . lang . String , java . lang . String , java . lang . String , java . lang . Integer > f = new com . m3 . scalaflavor4j . RichFunction4 ( new com . m3 . scalaflavor4j . F4 < java . lang . String , java . lang . String , java . lan...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
itPresentsTheSummary ( ) { "<AssertPlaceHolder>" . isEqualTo ( representation ) ; verify ( context . getNetWorthSummaryPresenter ( ) ) . present ( summaries , Locale . CHINA ) ; } handleGet ( ) { return resource . show ( context . getUser ( ) , Locale . TAIWAN , intervalType , currency , startDate , endDate , uneditedO...
org . junit . Assert . assertThat ( handleGet ( ) )
runSimpleBashScriptNotExisting ( ) { org . junit . Assume . assumeTrue ( SystemUtils . IS_OS_LINUX ) ; final java . lang . String output = com . cloud . utils . script . Script . runSimpleBashScript ( ( "/not/existing/scripts/" + ( java . lang . System . currentTimeMillis ( ) ) ) ) ; "<AssertPlaceHolder>" ; } runSimple...
org . junit . Assert . assertNull ( output )
testECDSAKey ( ) { java . security . KeyPair keyPair = instance . decodePrivateKey ( "src/test/resources/ecdsa" , "" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( keyPair )
updatesBoundsWithArcPoint ( ) { java . awt . geom . Point2D mouse = new java . awt . geom . Point2D . Double ( 300 , 300 ) ; temporaryArcView . addIntermediatePoint ( new uk . ac . imperial . pipe . models . petrinet . ArcPoint ( mouse , true ) ) ; java . awt . Rectangle expected = new java . awt . Rectangle ( 0 , 0 , ...
org . junit . Assert . assertEquals ( expected , actual )
testToString ( ) { org . zeromq . util . ZData data = new org . zeromq . util . ZData ( "test" . getBytes ( ZMQ . CHARSET ) ) ; java . lang . String string = data . toString ( ) ; "<AssertPlaceHolder>" ; } is ( int ) { return ( get ( ) ) == err ; }
org . junit . Assert . assertThat ( string , org . hamcrest . CoreMatchers . is ( "test" ) )
testCopyToByte ( ) { org . eclipse . jgit . lfs . lib . AnyLongObjectId id1 = org . eclipse . jgit . lfs . test . LongObjectIdTestUtils . hash ( "test" ) ; byte [ ] buf = new byte [ 64 ] ; id1 . copyTo ( buf , 0 ) ; "<AssertPlaceHolder>" ; } fromString ( byte [ ] , int ) { return org . eclipse . jgit . lfs . lib . Long...
org . junit . Assert . assertEquals ( id1 , org . eclipse . jgit . lfs . lib . LongObjectId . fromString ( buf , 0 ) )
testOpenNatsDisconnected ( ) { "<AssertPlaceHolder>" ; when ( conn . getStatus ( ) ) . thenReturn ( Status . CLOSED ) ; transport . open ( ) ; } isOpen ( ) { return false ; }
org . junit . Assert . assertFalse ( transport . isOpen ( ) )
testPutIfAbsent ( ) { com . googlecode . concurrenttrees . radixreversed . ConcurrentReversedRadixTree < java . lang . Integer > tree = new com . googlecode . concurrenttrees . radixreversed . ConcurrentReversedRadixTree < java . lang . Integer > ( getNodeFactory ( ) ) ; tree . putIfAbsent ( "TEST" , 1 ) ; tree . putIf...
org . junit . Assert . assertEquals ( expected , actual )
testLargeRebalance ( ) { final int NUM_TSERVERS = 255 ; for ( int i = 0 ; i < NUM_TSERVERS ; ++ i ) { testTServers . addTServer ( "127.0.0.1" ) ; } java . util . Map < org . apache . accumulo . core . data . impl . KeyExtent , org . apache . accumulo . server . master . state . TServerInstance > unassigned = new java ....
org . junit . Assert . assertEquals ( totalExtents , assignments . size ( ) )
testExtFun7 ( ) { java . lang . String init = "prefix<sp>ex:<sp><http://example.org/><sp>" + ( ( "function<sp>xt:fun(?n)<sp>{<sp>" 0 + "ex:John<sp>rdf:value<sp>1,<sp>2<sp>" ) + "}" ) ; java . lang . String q = "prefix<sp>ex:<sp><http://example.org/><sp>" + ( ( ( ( ( ( "select<sp>(sum(xt:fun(?n<sp>+<sp>1))<sp>as<sp>?sum...
org . junit . Assert . assertEquals ( 2 , dt . intValue ( ) )
testTaggedMeter ( ) { taggedMetric = new com . github . sps . metrics . TaggedMeter ( tags ) ; "<AssertPlaceHolder>" ; } getTags ( ) { return tags ; }
org . junit . Assert . assertEquals ( tags , taggedMetric . getTags ( ) )
testListTemplatesWithCustomArchetypesDir ( ) { java . util . Properties archetypesProperties = com . liferay . project . templates . internal . util . ProjectTemplatesUtil . getProjectTemplateJarVersionsProperties ( ) ; java . util . Set < java . lang . String > artifactIds = archetypesProperties . stringPropertyNames ...
org . junit . Assert . assertEquals ( customTemplatesMap . size ( ) , ( ( templatesMap . size ( ) ) + 1 ) )
testCopyConstructorReusesArray ( ) { org . eclipse . jgit . util . RefList . Builder < org . eclipse . jgit . lib . Ref > one = new org . eclipse . jgit . util . RefList . Builder < > ( ) ; one . add ( org . eclipse . jgit . util . RefListTest . REF_A ) ; org . eclipse . jgit . util . RefList < org . eclipse . jgit . l...
org . junit . Assert . assertSame ( org . eclipse . jgit . util . RefListTest . REF_B , two . get ( 0 ) )
testSession ( ) { final javax . persistence . EntityManager em = context . mock ( javax . persistence . EntityManager . class ) ; final org . hibernate . Session session = context . mock ( org . hibernate . Session . class ) ; context . checking ( new org . jmock . Expectations ( ) { { oneOf ( em ) . getDelegate ( ) ; ...
org . junit . Assert . assertEquals ( session , sut . getSession ( ) )
testReindex ( ) { java . io . File path ; try ( com . questdb . store . JournalWriter < com . questdb . model . Quote > w = getFactory ( ) . writer ( com . questdb . model . Quote . class ) ) { com . questdb . test . tools . TestData . appendQuoteData1 ( w ) ; path = w . getLocation ( ) ; } getFactory ( ) . lock ( com ...
org . junit . Assert . assertEquals ( 3 , journal . query ( ) . head ( ) . withKeys ( ) . asResultSet ( ) . read ( ) . length )
testCseEntity ( org . apache . servicecomb . provider . springmvc . reference . CseHttpEntity , org . springframework . web . client . RequestCallback ) { org . apache . servicecomb . provider . springmvc . reference . CseClientHttpRequest request = new org . apache . servicecomb . provider . springmvc . reference . Cs...
org . junit . Assert . assertEquals ( entity . getContext ( ) , request . getContext ( ) )
perpendicularWithoutIntersection ( ) { jetbrains . jetpad . geometry . DoubleSegment s1 = new jetbrains . jetpad . geometry . DoubleSegment ( new jetbrains . jetpad . geometry . DoubleVector ( 100 , 100 ) , new jetbrains . jetpad . geometry . DoubleVector ( 140 , 100 ) ) ; jetbrains . jetpad . geometry . DoubleSegment ...
org . junit . Assert . assertNull ( s1 . intersection ( s2 ) )
testAuthenticationLowercase ( ) { final org . pac4j . http . client . direct . DirectBasicAuthClient client = new org . pac4j . http . client . direct . DirectBasicAuthClient ( new org . pac4j . http . credentials . authenticator . test . SimpleTestUsernamePasswordAuthenticator ( ) ) ; final org . pac4j . core . contex...
org . junit . Assert . assertEquals ( org . pac4j . http . client . direct . USERNAME , profile . getId ( ) )
testGetResource ( ) { org . eclipse . core . resources . IResource result = fFixture . getResource ( ) ; "<AssertPlaceHolder>" ; } getResource ( ) { return fResource ; }
org . junit . Assert . assertNull ( result )
testJoinNetwork_Node_WrongAddress ( ) { initialNodeManager = createInitialNode ( ) ; boolean ret = nodeManager . joinNetwork ( "1.2.3.4" ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( messageBus , org . mockito . Mockito . never ( ) ) . publish ( org . mockito . Mockito . anyObject ( ) ) ; } joinNetwork...
org . junit . Assert . assertFalse ( ret )
getNumberOfParameters ( ) { final org . bonitasoft . engine . bpm . process . impl . ProcessDefinitionBuilder processBuilder = new org . bonitasoft . engine . bpm . process . impl . ProcessDefinitionBuilder ( ) . createNewInstance ( "firstProcess" , "1.0" ) ; processBuilder . addParameter ( "key1" , java . lang . Strin...
org . junit . Assert . assertEquals ( 4 , numberOfParamters )
testVoegVerwerkingssoortenToeOpBetrokkenhedenKind ( ) { persoonHisVolledig = persoonHisVolledigRepository . leesGenormalizeerdModel ( nl . bzk . brp . levering . business . bepalers . BerichtVerwerkingssoortToevoegerIntegratieTest . PERSOON_ID_KIND ) ; persoonHisVolledigView = new nl . bzk . brp . model . hisvolledig ....
org . junit . Assert . assertTrue ( alleVerwerkingsoortenOpBetrokkenheidEnRelatieZijnGevuld ( betrokkenheid , true ) )
testFishingStopsWhenNoPoleHeld ( ) { entity . setCurrentFishingHook ( new net . glowstone . entity . passive . GlowFishingHook ( location , fishingRodItem , entity ) ) ; entity . setItemInHand ( net . glowstone . util . InventoryUtil . createEmptyStack ( ) ) ; entity . pulse ( ) ; "<AssertPlaceHolder>" ; } getCurrentFi...
org . junit . Assert . assertNull ( entity . getCurrentFishingHook ( ) )
testGetDistinctAnnotationColumnsSqlFileView ( ) { java . lang . String sql = org . sagebionetworks . table . cluster . SQLUtils . getDistinctAnnotationColumnsSql ( ViewTypeMask . File . getMask ( ) ) ; java . lang . String expected = ( org . sagebionetworks . repo . model . table . TableConstants . ENTITY_REPLICATION_C...
org . junit . Assert . assertTrue ( sql . contains ( expected ) )
testGetSessionOnSuccessCase ( ) { java . io . File fileMock = mock ( java . io . File . class ) ; whenNew ( java . io . File . class ) . withArguments ( anyString ( ) ) . thenReturn ( fileMock ) ; when ( fileMock . exists ( ) ) . thenReturn ( true ) ; when ( fileMock . isDirectory ( ) ) . thenReturn ( false ) ; com . j...
org . junit . Assert . assertNotNull ( sessionObj )
checkResultCount_None ( ) { java . util . Map < java . lang . String , org . apache . servicecomb . foundation . metrics . health . HealthCheckResult > results = org . apache . servicecomb . foundation . metrics . health . HealthCheckerManager . getInstance ( ) . check ( ) ; "<AssertPlaceHolder>" ; } check ( ) { check ...
org . junit . Assert . assertEquals ( 0 , results . size ( ) )
should_require_valid_evidence ( ) { au . edu . wehi . idsv . BreakpointSummary outOfBounds = new au . edu . wehi . idsv . BreakpointSummary ( 0 , BWD , ( - 10 ) , 0 , FWD , 12000 ) ; java . util . List < au . edu . wehi . idsv . VariantContextDirectedEvidence > calls = com . google . common . collect . Lists . newArray...
org . junit . Assert . assertEquals ( 2 , calls . size ( ) )
fromStringPlainPropertiesToObject ( ) { java . lang . String sampleFileAsString = getSampleFileAsString ( "JohnPlainProperties.jsonld" ) ; br . com . srs . gsonld . GsonLD gsonLD = new br . com . srs . gsonld . GsonLD ( ) ; br . com . srs . gsonld . test . JohnPlain john = gsonLD . fromJsonLD ( sampleFileAsString , br ...
org . junit . Assert . assertEquals ( johnPlainExpected , john )
listSupport2 ( ) { java . util . List < java . lang . Object > oldValues = new java . util . ArrayList ( ) ; java . util . List < java . lang . Object > newValues = new java . util . ArrayList ( ) ; org . diirt . datasource . Notification < java . util . List < java . lang . Object > > notification = org . diirt . data...
org . junit . Assert . assertThat ( notification . isNotificationNeeded ( ) , equalTo ( false ) )
testShouldReturnAppWithSpecifiedLaunchActivityEvenIfNotInStore ( ) { org . json . JSONObject jsonSource = new org . json . JSONObject ( ) ; jsonSource . put ( "aut" , "io.selendroid.test:0.13.0" ) ; jsonSource . put ( "launchActivity" , "HomeScreenActivity" ) ; io . selendroid . common . SelendroidCapabilities capa = n...
org . junit . Assert . assertEquals ( "io.selendroid.test:0.13.0" , defaultApp )
testGetFieldNames ( ) { org . apache . avro . Schema runtimeSchema ; org . talend . daikon . properties . property . Property < org . apache . avro . Schema > schemaProperty ; java . util . List < java . lang . String > propertyFieldNames ; java . util . List < java . lang . String > expectedPropertyFieldNames ; runtim...
org . junit . Assert . assertEquals ( propertyFieldNames , expectedPropertyFieldNames )
testOpStatus1 ( ) { "<AssertPlaceHolder>" ; } byNumber ( int ) { switch ( val ) { case 0 : return org . nd4j . linalg . api . ops . executioner . OpStatus . ND4J_STATUS_OK ; case 1 : return org . nd4j . linalg . api . ops . executioner . OpStatus . ND4J_STATUS_BAD_INPUT ; case 2 : return org . nd4j . linalg . api . ops...
org . junit . Assert . assertEquals ( OpStatus . ND4J_STATUS_OK , org . nd4j . linalg . api . ops . executioner . OpStatus . byNumber ( 0 ) )
test35 ( ) { byte [ ] packet = new byte [ ] { ( ( byte ) ( 255 ) ) , ( ( byte ) ( 255 ) ) , ( ( byte ) ( 255 ) ) , ( ( byte ) ( 255 ) ) , ( ( byte ) ( 255 ) ) } ; com . github . mpjct . jmpjct . mysql . proto . Proto proto = new com . github . mpjct . jmpjct . mysql . proto . Proto ( packet ) ; java . util . ArrayList ...
org . junit . Assert . assertArrayEquals ( packet , com . github . mpjct . jmpjct . mysql . proto . Proto . arraylist_to_array ( payload ) )
testFindByPrimaryKeyExisting ( ) { com . liferay . portal . kernel . model . UserNotificationDelivery newUserNotificationDelivery = addUserNotificationDelivery ( ) ; com . liferay . portal . kernel . model . UserNotificationDelivery existingUserNotificationDelivery = _persistence . findByPrimaryKey ( newUserNotificatio...
org . junit . Assert . assertEquals ( existingUserNotificationDelivery , newUserNotificationDelivery )
shouldNotAcceptsAnyMethodsInsideNonAnnotatedClass ( ) { br . com . caelum . vraptor . interceptor . WithAnnotationAcceptor acceptor = new br . com . caelum . vraptor . interceptor . WithAnnotationAcceptor ( ) ; br . com . caelum . vraptor . controller . DefaultControllerInstance controllerInstance = new br . com . cael...
org . junit . Assert . assertFalse ( acceptor . validate ( controllerMethod , controllerInstance ) )
testGetJarFileNameWrapper ( ) { classUnderTest . setJarFileNames ( new java . lang . String [ ] { "test.jar" } ) ; "<AssertPlaceHolder>" ; } getJarFileNameWrapper ( int ) { System . err . println ( "MockSQLDriver.getJarFileNameWrapper:<sp>stub<sp>not<sp>yet<sp>implemented" ) ; return null ; }
org . junit . Assert . assertEquals ( "test.jar" , classUnderTest . getJarFileNameWrapper ( 0 ) . getString ( ) )
testGetState_Unassigned2 ( ) { tls = new org . apache . accumulo . server . master . state . TabletLocationState ( keyExtent , null , null , last , null , org . apache . accumulo . server . master . state . TabletLocationStateTest . walogs , true ) ; "<AssertPlaceHolder>" ; } getState ( java . util . Set ) { switch ( (...
org . junit . Assert . assertEquals ( TabletState . UNASSIGNED , tls . getState ( null ) )
test_deleteBy ( ) { java . util . Map templateModel = new java . util . HashMap ( ) ; java . util . Map filePathModel = new java . util . HashMap ( ) ; generator . setTemplateRootDir ( "/not_exist_828282" ) ; cn . org . rapid_framework . generator . Generator result = generator . deleteBy ( templateModel , filePathMode...
org . junit . Assert . assertNotNull ( result )
reduceLeftOption_A$Function2 ( ) { com . m3 . scalaflavor4j . Seq < java . lang . Integer > seq = com . m3 . scalaflavor4j . Nil . apply ( ) ; com . m3 . scalaflavor4j . Option < java . lang . Integer > actual = seq . reduceLeftOption ( new com . m3 . scalaflavor4j . FoldLeftF2 < java . lang . Integer , java . lang . I...
org . junit . Assert . assertThat ( actual . isDefined ( ) , org . hamcrest . CoreMatchers . is ( false ) )
testTypeMulti ( ) { "<AssertPlaceHolder>" ; } createMultiProperty ( ) { return new net . sourceforge . pmd . properties . FloatMultiProperty ( "testFloat" , "Test<sp>float<sp>property" , net . sourceforge . pmd . properties . FloatPropertyTest . MIN , net . sourceforge . pmd . properties . FloatPropertyTest . MAX , new...
org . junit . Assert . assertNotNull ( createMultiProperty ( ) . type ( ) )
testPostfixFunction11 ( ) { java . lang . String expr ; double expected ; expr = "cos(x)<sp>-<sp>(1/cbrt(x))" ; net . objecthunter . exp4j . Expression e = new net . objecthunter . exp4j . ExpressionBuilder ( expr ) . variables ( "x" ) . build ( ) ; for ( double x = - 10 ; x < 10 ; x = x + 0.5 ) { if ( x == 0.0 ) conti...
org . junit . Assert . assertTrue ( ( expected == ( e . setVariable ( "x" , x ) . evaluate ( ) ) ) )
test02PrefixJoinProject_noresult ( ) { com . ebay . cloud . cms . query . service . QueryContext context = new com . ebay . cloud . cms . query . service . QueryContext ( raptorContext ) ; java . lang . String query = "ApplicationService[@_oid=\"abc\"].services<@https,<sp>@activeManifestDiff>[<sp>$max(@port)<sp>><sp>\"...
org . junit . Assert . assertEquals ( 0 , queryResult . getEntities ( ) . size ( ) )
testGetArrayBuffer_Int8Array ( ) { com . eclipsesource . v8 . V8ArrayBuffer buffer = new com . eclipsesource . v8 . V8ArrayBuffer ( v8 , 8 ) ; com . eclipsesource . v8 . V8TypedArray v8Int8Array = new com . eclipsesource . v8 . V8TypedArray ( v8 , buffer , V8Value . BYTE , 0 , 2 ) ; com . eclipsesource . v8 . V8ArrayBu...
org . junit . Assert . assertEquals ( result , buffer )
forEachWithIndexOver100 ( ) { java . util . ArrayList < java . lang . Integer > list = new java . util . ArrayList ( com . gs . collections . impl . list . Interval . oneTo ( 101 ) ) ; com . gs . collections . impl . utility . Iterate . sortThis ( list ) ; com . gs . collections . impl . utility . ArrayListIterate . fo...
org . junit . Assert . assertEquals ( index , ( object - 1 ) )
shouldConvertObjectArrayToElementIds ( ) { final java . lang . Object [ ] input = new java . lang . Object [ ] { 1 , "2" , new uk . gov . gchq . gaffer . operation . data . EntitySeed ( "3" ) , new uk . gov . gchq . gaffer . data . element . Entity ( "group" , "4" ) , new uk . gov . gchq . gaffer . operation . data . E...
org . junit . Assert . assertEquals ( com . google . common . collect . Lists . newArrayList ( new uk . gov . gchq . gaffer . operation . data . EntitySeed ( 1 ) , new uk . gov . gchq . gaffer . operation . data . EntitySeed ( "2" ) , new uk . gov . gchq . gaffer . operation . data . EntitySeed ( "3" ) , new uk . gov ....
getChangedAndSelectedCategories ( ) { java . util . List < org . oscm . internal . vo . VOCategory > categories1 = getVOCategoryList ( ) ; java . util . List < org . oscm . internal . vo . VOCategory > categories2 = getVOCategoryList ( ) ; categories2 . add ( new org . oscm . internal . vo . VOCategory ( ) ) ; java . u...
org . junit . Assert . assertEquals ( ( ( categories1 . size ( ) ) + 1 ) , result . size ( ) )
testPreimageProof ( ) { ch . bfh . unicrypt . math . function . classes . GeneratorFunction f = ch . bfh . unicrypt . math . function . classes . GeneratorFunction . getInstance ( this . G_q1 . getElement ( 4 ) ) ; ch . bfh . unicrypt . crypto . proofsystem . challengegenerator . interfaces . SigmaChallengeGenerator sc...
org . junit . Assert . assertTrue ( v )
testJsonToObject ( ) { com . quantiply . avro . AvroToJson avroToJson = new com . quantiply . avro . AvroToJson ( ) ; com . quantiply . test . User expectedUser = com . quantiply . test . User . newBuilder ( ) . setAge ( 5 ) . setName ( "Bumpkin" ) . build ( ) ; java . lang . String jsonStr = "{\"name\":\"Bumpkin\",\"a...
org . junit . Assert . assertEquals ( expectedUser , user )
testUnnestItemsInMapWithNoAliasAndAdditionalArgument ( ) { java . sql . Connection connection = java . sql . DriverManager . getConnection ( "jdbc:calcite:" ) ; final java . lang . String sql = "select<sp>*<sp>from<sp>unnest(MAP['a',<sp>1,<sp>'b',<sp>2],<sp>array[5,<sp>6,<sp>7])" ; java . sql . ResultSet resultSet = co...
org . junit . Assert . assertThat ( org . apache . calcite . test . CalciteAssert . toString ( resultSet ) , org . hamcrest . CoreMatchers . is ( expected ) )
testTimestamp ( ) { org . jboss . resteasy . security . doseta . Verifier verifier = new org . jboss . resteasy . security . doseta . Verifier ( ) ; org . jboss . resteasy . security . doseta . Verification verification = verifier . addNew ( ) ; verification . setRepository ( org . jboss . resteasy . test . security . ...
org . junit . Assert . assertEquals ( 200 , response . getStatus ( ) )
testEqualsNew ( ) { org . apache . tuscany . sca . core . scope . Scope foo = new org . apache . tuscany . sca . core . scope . Scope ( "foo" ) ; org . apache . tuscany . sca . core . scope . Scope foo2 = new org . apache . tuscany . sca . core . scope . Scope ( "FOO" ) ; "<AssertPlaceHolder>" ; } equals ( java . lang ...
org . junit . Assert . assertTrue ( foo . equals ( foo2 ) )
testSlice9 ( ) { com . ibm . wala . ipa . callgraph . AnalysisScope scope = com . ibm . wala . core . tests . slicer . SlicerTest . findOrCreateAnalysisScope ( ) ; com . ibm . wala . ipa . cha . IClassHierarchy cha = com . ibm . wala . core . tests . slicer . SlicerTest . findOrCreateCHA ( scope ) ; java . lang . Itera...
org . junit . Assert . assertEquals ( 5 , com . ibm . wala . core . tests . slicer . SlicerTest . countApplicationNormals ( slice ) )
validate_statusIsNull_returnFalse ( ) { boolean isValid = confirmation . validate ( ) ; "<AssertPlaceHolder>" ; } validate ( ) { return true ; }
org . junit . Assert . assertThat ( isValid , org . hamcrest . CoreMatchers . is ( false ) )
orderingTest ( ) { java . util . List < java . lang . Integer > list1 = java . util . stream . Stream . generate ( new java . util . function . Supplier < java . lang . Integer > ( ) { @ com . yong . orders . guava . Override public com . yong . orders . guava . Integer get ( ) { return ( ( int ) ( ( java . lang . Math...
org . junit . Assert . assertTrue ( true )
testBug1572478Horizontal ( ) { org . jfree . data . statistics . DefaultBoxAndWhiskerCategoryDataset dataset = new org . jfree . data . statistics . DefaultBoxAndWhiskerCategoryDataset ( ) { @ org . jfree . chart . renderer . category . Override public org . jfree . chart . renderer . category . Number getQ1Value ( int...
org . junit . Assert . assertTrue ( success )
testLinesToCells ( ) { java . util . List < technology . tabula . Cell > cells = technology . tabula . extractors . SpreadsheetExtractionAlgorithm . findCells ( java . util . Arrays . asList ( technology . tabula . TestSpreadsheetExtractor . HORIZONTAL_RULING_LINES ) , java . util . Arrays . asList ( technology . tabul...
org . junit . Assert . assertTrue ( cells . equals ( expected ) )
testHashCode ( ) { org . jfree . data . function . NormalDistributionFunction2D f1 = new org . jfree . data . function . NormalDistributionFunction2D ( 1.0 , 2.0 ) ; org . jfree . data . function . NormalDistributionFunction2D f2 = new org . jfree . data . function . NormalDistributionFunction2D ( 1.0 , 2.0 ) ; "<Asser...
org . junit . Assert . assertEquals ( f1 . hashCode ( ) , f2 . hashCode ( ) )
testUpdateProductLink ( ) { try { upsertOnTestRunMessage ( "qty" , 5 ) ; java . lang . Boolean response = runFlowAndGetPayload ( "update-product-link" ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ) { org . junit . Assert . fail ( org . mule . modules . tests . ConnectorTestUtils . getStackTrace ( e )...
org . junit . Assert . assertTrue ( response )
testGetPreparedStatement ( ) { java . sql . PreparedStatement ps = getLink ( ) . getPreparedStatement ( ( ( ( "SELECT<sp>" + ( Organisation . FLD_NAME1 ) ) + "<sp>FROM<sp>" ) + ( Organisation . TABLENAME ) ) ) ; ch . elexis . data . Query < ch . elexis . data . Organisation > query = new ch . elexis . data . Query < ch...
org . junit . Assert . assertEquals ( ( nrOrgs + 1 ) , result . size ( ) )
whenDeletingAKeyspace_thenDoesNotExist ( ) { java . lang . String keyspaceName = "testBaeldungKeyspace" ; schemaRepository . deleteKeyspace ( keyspaceName ) ; com . datastax . driver . core . ResultSet result = session . execute ( "SELECT<sp>*<sp>FROM<sp>system_schema.keyspaces;" ) ; boolean isKeyspaceCreated = result ...
org . junit . Assert . assertFalse ( isKeyspaceCreated )
testSerialization ( ) { org . jfree . data . time . TimePeriodValues s1 = new org . jfree . data . time . TimePeriodValues ( "A<sp>test" ) ; s1 . add ( new org . jfree . data . time . Year ( 2000 ) , 13.75 ) ; s1 . add ( new org . jfree . data . time . Year ( 2001 ) , 11.9 ) ; s1 . add ( new org . jfree . data . time ....
org . junit . Assert . assertTrue ( s1 . equals ( s2 ) )
houdtRekeningMetGeldigheidGeautoriseerde ( ) { toegangLeveringsAutorisatie . getGeautoriseerde ( ) . setDatumEinde ( nl . bzk . algemeenbrp . util . common . DatumUtil . gisteren ( ) ) ; java . util . Collection < nl . bzk . brp . beheer . service . selectie . SelectieTaakDTO > taken = service . filter ( java . util . ...
org . junit . Assert . assertThat ( taken . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) )