input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
testToBuilder ( ) { com . google . cloud . datastore . DoubleValue value = com . google . cloud . datastore . DoubleValue . of ( com . google . cloud . datastore . DoubleValueTest . CONTENT ) ; "<AssertPlaceHolder>" ; } toBuilder ( ) { return ( this ) == ( com . google . firestore . admin . v1 . DeleteIndexRequest . DE... | org . junit . Assert . assertEquals ( value , value . toBuilder ( ) . build ( ) ) |
actionInActionList ( ) { java . lang . String action = generateText ( ) ; actionEvaluator . setAction ( action ) ; org . json . simple . JSONObject json = ( ( org . json . simple . JSONObject ) ( new org . json . simple . parser . JSONParser ( ) . parse ( ( ( "{\"node\":{\"rmNode\":{\"actions\":[\"" + action ) + "\"]}}... | org . junit . Assert . assertTrue ( actionEvaluator . evaluate ( json ) ) |
testGeenRedenVerkrijging ( ) { java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > meldingen ; nl . bzk . brp . model . bericht . kern . PersoonBericht persoon = bouwPersoon ( bouwRedenVerkrijging ( nl . bzk . brp . bijhouding . business . regels . impl . gegevenset . persoon . nationaliteit . BRBY0... | org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) ) |
testMoreMethods ( ) { jetbrick . bean . asm . AsmBigClassTest . BigClass a = new jetbrick . bean . asm . AsmBigClassTest . BigClass ( ) ; jetbrick . bean . KlassInfo klass = jetbrick . bean . KlassInfo . create ( jetbrick . bean . asm . AsmBigClassTest . BigClass . class ) ; jetbrick . bean . MethodInfo method = klass ... | org . junit . Assert . assertEquals ( 0 , method . invoke ( a ) ) |
testMetdataPreviewSqlBooleanToPentahoBoolean ( ) { doReturn ( Types . BOOLEAN ) . when ( resultSet ) . getInt ( "DATA_TYPE" ) ; org . pentaho . di . core . row . ValueMetaInterface valueMeta = valueMetaBase . getMetadataPreview ( dbMeta , resultSet ) ; "<AssertPlaceHolder>" ; } isBoolean ( ) { return ( type ) == ( TYPE... | org . junit . Assert . assertTrue ( valueMeta . isBoolean ( ) ) |
setWritableEmulation ( ) { org . apache . hadoop . io . MapWritable src = new org . apache . hadoop . io . MapWritable ( ) ; src . put ( new org . apache . hadoop . io . IntWritable ( 1 ) , org . apache . hadoop . io . NullWritable . get ( ) ) ; src . put ( new org . apache . hadoop . io . IntWritable ( 2 ) , org . apa... | org . junit . Assert . assertThat ( dest . containsKey ( new org . apache . hadoop . io . IntWritable ( 1 ) ) , org . hamcrest . CoreMatchers . is ( true ) ) |
testHistorischZoekBereikMaterieelGeenAutorisatieMaarGeenHistorieGroep ( ) { final nl . bzk . brp . domain . element . AttribuutElement attribuutElement = getAttribuutElement ( Element . PERSOON_GEBOORTE_DATUM . getId ( ) ) ; final nl . bzk . brp . service . bevraging . zoekpersoongeneriek . AbstractZoekPersoonVerzoek b... | org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) ) |
testIsCheckerDisabledWhenSettingForbiddenGroupToUser ( ) { long forbiddenGroupId = addForbiddenGroups ( ) [ 0 ] ; com . liferay . portal . kernel . model . Group forbiddenGroup = com . liferay . portal . kernel . service . GroupLocalServiceUtil . getGroup ( forbiddenGroupId ) ; com . liferay . portlet . sitesadmin . se... | org . junit . Assert . assertTrue ( siteMembershipChecker . isDisabled ( user ) ) |
testBuildWithParametersAndDisabledDefaultConstraint ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; java . lang . String name = "fsdfds" ; java . lang . String abbrName = "dog" ; org . lnu . is . domain . optype . OperationType context = new org . lnu . is . domain . optype . OperationType ( ) ; conte... | org . junit . Assert . assertEquals ( expectedQuery , actualQuery ) |
getReportByMultipleProcessDefinitionIdByMonthNoAuthenticatedTenants ( ) { testRule . deployForTenant ( org . camunda . bpm . engine . test . api . multitenancy . tenantcheck . MultiTenancyHistoricProcessInstanceReportCmdTenantCheckTest . TENANT_ONE , org . camunda . bpm . engine . test . api . multitenancy . tenantchec... | org . junit . Assert . assertThat ( result . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) ) |
testPreGenMovesIteratorSkipMoves ( ) { barrysw19 . calculon . engine . PreGeneratedMoves . PreGeneratedMoveIterator iter = new barrysw19 . calculon . engine . PreGeneratedMoves . PreGeneratedMoveIterator ( PreGeneratedMoves . SLIDE_MOVES [ 15 ] ) ; iter . next ( ) ; iter . nextDirection ( ) ; int count = 0 ; while ( ( ... | org . junit . Assert . assertEquals ( 15 , count ) |
testFindPersonWithQueryAnnotation ( ) { final org . springframework . data . neo4j . support . TestTeam testTeam = new org . springframework . data . neo4j . support . TestTeam ( ) ; testTeam . createSDGTeam ( ) ; org . springframework . data . neo4j . support . Person boss = personRepository . findBoss ( testTeam . mi... | org . junit . Assert . assertThat ( boss , org . hamcrest . CoreMatchers . is ( testTeam . emil ) ) |
testSetTBarSizeNumListKONotSameSize ( ) { final java . util . List < java . util . Optional < java . lang . Double > > vals = java . util . Arrays . asList ( java . util . Optional . of ( arr1 . getTBarSizeNum ( ) ) , java . util . Optional . of ( arr2 . getTBarSizeNum ( ) ) ) ; group . setTBarSizeNumList ( java . util... | org . junit . Assert . assertEquals ( vals , java . util . Arrays . asList ( java . util . Optional . of ( arr1 . getTBarSizeNum ( ) ) , java . util . Optional . of ( arr2 . getTBarSizeNum ( ) ) ) ) |
testPersoonMetWijzigingGeslachtsnaamMaarNietIngeschrevene ( ) { final nl . bzk . brp . model . bericht . kern . PersoonBericht persoonBericht = maakPersoon ( "van" , "-" , "Brom" , null , null ) ; final nl . bzk . brp . model . hisvolledig . impl . kern . PersoonHisVolledigImpl persoonHisVolledig = maakHuidigePersoon (... | org . junit . Assert . assertTrue ( berichtEntiteiten . isEmpty ( ) ) |
test_GetSlider_By_Name ( ) { when ( element . findFirst ( mmarquee . automation . BaseAutomationTest . isTreeScope ( TreeScope . Descendants ) , any ( ) ) ) . thenReturn ( targetElement ) ; mmarquee . automation . controls . AutomationSlider slider = spyWndw . getSlider ( mmarquee . automation . controls . Search . get... | org . junit . Assert . assertEquals ( targetElement , slider . getElement ( ) ) |
testCodesAreUnique ( ) { final java . util . Set < java . lang . Object > codes = new java . util . HashSet < java . lang . Object > ( ) ; for ( final org . springframework . roo . support . util . AnsiEscapeCode escapeCode : org . springframework . roo . support . util . AnsiEscapeCode . values ( ) ) { codes . add ( e... | org . junit . Assert . assertEquals ( org . springframework . roo . support . util . AnsiEscapeCode . values ( ) . length , codes . size ( ) ) |
testXmlReaderMLAlgorithm ( ) { java . util . List < org . aksw . limes . core . ml . algorithm . LearningParameter > mlParameters = new java . util . ArrayList ( ) ; org . aksw . limes . core . ml . algorithm . LearningParameter lp = new org . aksw . limes . core . ml . algorithm . LearningParameter ( ) ; lp . setName ... | org . junit . Assert . assertTrue ( testConf . equals ( fileConf ) ) |
testMolecularFormula ( ) { org . openscience . cdk . interfaces . IMolecularFormula mf = getBuilder ( ) . newInstance ( org . openscience . cdk . interfaces . IMolecularFormula . class ) ; "<AssertPlaceHolder>" ; } getBuilder ( ) { return null ; } | org . junit . Assert . assertNotNull ( mf ) |
testEmptyTemplate ( ) { info . smart_tools . smartactors . http_endpoint . deserialize_strategy_get . parse_tree . IParseTree tree = new info . smart_tools . smartactors . http_endpoint . deserialize_strategy_get . parse_tree . ParseTree ( ) ; tree . addTemplate ( "/" ) ; java . util . Map < java . lang . String , java... | org . junit . Assert . assertEquals ( resultMap . size ( ) , 0 ) |
testSetRegex ( ) { java . lang . String regex = ">\"*%<>\'\\" ; org . apache . accumulo . core . client . IteratorSetting is = new org . apache . accumulo . core . client . IteratorSetting ( 50 , regex , org . apache . accumulo . core . iterators . user . RegExFilter . class ) ; org . apache . accumulo . core . iterato... | org . junit . Assert . assertEquals ( regex , org . apache . accumulo . core . client . mapred . AccumuloInputFormat . getIterators ( job ) . get ( 0 ) . getName ( ) ) |
writeCertificate2 ( ) { org . apache . hadoop . hdds . security . x509 . keys . HDDSKeyGenerator keyGenerator = new org . apache . hadoop . hdds . security . x509 . keys . HDDSKeyGenerator ( org . apache . hadoop . hdds . security . x509 . certificate . utils . TestCertificateCodec . conf ) ; org . bouncycastle . cert ... | org . junit . Assert . assertNotNull ( x509CertificateHolder ) |
testSetAdapterNull ( ) { destination . setAdapter ( null ) ; flex . messaging . services . ServiceAdapter actual = destination . getAdapter ( ) ; "<AssertPlaceHolder>" ; } getAdapter ( ) { return adapter ; } | org . junit . Assert . assertNull ( actual ) |
testSingletonCreation ( ) { org . pentaho . reporting . libraries . base . boot . ObjectFactorySingleton objectFactorySingleton1 = objectFactory . get ( org . pentaho . reporting . libraries . base . boot . ObjectFactorySingleton . class ) ; org . pentaho . reporting . libraries . base . boot . ObjectFactorySingleton o... | org . junit . Assert . assertTrue ( ( objectFactorySingleton1 == objectFactorySingleton2 ) ) |
should_return_this ( ) { org . fest . assertions . api . CharacterAssert returned = assertions . isLowerCase ( ) ; "<AssertPlaceHolder>" ; } isLowerCase ( ) { characters . assertLowerCase ( description , actual ) ; return this ; } | org . junit . Assert . assertSame ( assertions , returned ) |
construct_withFilledCause ( ) { final net . sf . qualitycheck . exception . IllegalNullElementsException e = new net . sf . qualitycheck . exception . IllegalNullElementsException ( new java . lang . NumberFormatException ( ) ) ; final java . lang . String expected = IllegalNullElementsException . DEFAULT_MESSAGE ; "<A... | org . junit . Assert . assertEquals ( expected , e . getMessage ( ) ) |
testProcessSong ( ) { int testLength = 1 ; org . bff . javampd . processor . TimeTagProcessor timeTagProcessor = new org . bff . javampd . processor . TimeTagProcessor ( ) ; org . bff . javampd . song . MPDSong song = new org . bff . javampd . song . MPDSong ( "testFile" , "testName" ) ; java . lang . String line = "Ti... | org . junit . Assert . assertEquals ( testLength , song . getLength ( ) ) |
test1 ( ) { java . util . prefs . Preferences prefs = java . util . prefs . Preferences . userNodeForPackage ( com . planet57 . gshell . util . pref . NameTest . Simple . class ) ; prefs . put ( "bar" , "foo" ) ; processor . process ( ) ; "<AssertPlaceHolder>" ; } process ( ) { com . planet57 . gshell . util . pref . P... | org . junit . Assert . assertEquals ( "foo" , bean . name ) |
testAddServerString ( ) { final com . allanbank . mongodb . MongoDbConfiguration config = new com . allanbank . mongodb . MongoDbConfiguration ( ) ; config . addServer ( "foo:1234" ) ; config . addServer ( "bar:1234" ) ; "<AssertPlaceHolder>" ; } getServers ( ) { return new java . util . ArrayList < com . allanbank . m... | org . junit . Assert . assertEquals ( java . util . Arrays . asList ( "foo:1234" , "bar:1234" ) , config . getServers ( ) ) |
testConcurrentBagForLeaks ( ) { org . junit . Assume . assumeTrue ( ( ! ( isJava9 ( ) ) ) ) ; java . lang . ClassLoader cl = new com . zaxxer . hikari . pool . TestElf . FauxWebClassLoader ( ) ; java . lang . Class < ? > clazz = cl . loadClass ( ( ( this . getClass ( ) . getName ( ) ) + "$FauxWebContext" ) ) ; java . l... | org . junit . Assert . assertNull ( ex ) |
hasPostCreateDomainPermissions_succeedsAsSystemResource ( ) { authenticateSystemResource ( ) ; final java . util . Set < com . acciente . oacc . DomainCreatePermission > allDomainCreatePermissions = accessControlContext . getEffectiveDomainCreatePermissions ( com . acciente . oacc . SYS_RESOURCE ) ; "<AssertPlaceHolder... | org . junit . Assert . assertThat ( allDomainCreatePermissions . isEmpty ( ) , org . hamcrest . CoreMatchers . is ( false ) ) |
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . site . model . SiteFriendlyURL . class , _dynamicQueryClassLoader ) ; dynamicQuery . setProjection ( com ... | org . junit . Assert . assertEquals ( 0 , result . size ( ) ) |
testFetchByPrimaryKeysWithNoPrimaryKeys ( ) { java . util . Set < java . io . Serializable > primaryKeys = new java . util . HashSet < java . io . Serializable > ( ) ; java . util . Map < java . io . Serializable , com . liferay . social . kernel . model . SocialActivityAchievement > socialActivityAchievements = _persi... | org . junit . Assert . assertTrue ( socialActivityAchievements . isEmpty ( ) ) |
testExtraAttributesMultipleDependenciesNoHang ( ) { org . apache . ivy . Ivy ivy = new org . apache . ivy . Ivy ( ) ; ivy . configure ( new java . io . File ( "test/repositories/extra-attributes-multipledependencies/ivysettings-filerepo-noattribs.xml" ) ) ; ivy . getSettings ( ) . setDefaultCache ( cache ) ; org . apac... | org . junit . Assert . assertFalse ( report . hasError ( ) ) |
shouldGetEmailByCode_ifNotFound ( ) { com . codenjoy . dojo . services . dao . RegistrationTest . service . register ( "user" , "email" , "name" , "pass" , "data" ) ; java . lang . String email = com . codenjoy . dojo . services . dao . RegistrationTest . service . getIdByCode ( "bad_code" ) ; "<AssertPlaceHolder>" ; }... | org . junit . Assert . assertNull ( email ) |
testResponse405OnDelete ( ) { com . liferay . petra . json . web . service . client . internal . JSONWebServiceClientImpl jsonWebServiceClientImpl = new com . liferay . petra . json . web . service . client . internal . JSONWebServiceClientImpl ( ) ; java . util . Map < java . lang . String , java . lang . Object > pro... | org . junit . Assert . assertNull ( json ) |
testSetSha1sum ( ) { java . lang . String sha1sum = "test" ; org . owasp . dependencycheck . dependency . Dependency instance = new org . owasp . dependencycheck . dependency . Dependency ( ) ; instance . setSha1sum ( sha1sum ) ; "<AssertPlaceHolder>" ; } getSha1sum ( ) { if ( ( sha1sum ) == null ) { this . sha1sum = d... | org . junit . Assert . assertEquals ( sha1sum , instance . getSha1sum ( ) ) |
deveObterInfoCancelamentoComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe400 . classes . evento . manifestacaodestinatario . NFInfoEventoManifestacaoDestinatario infoEventoManifestacaoDestinatario = new com . fincatto . documentofiscal . nfe400 . classes . evento . manifestacaodestinatario . NFInfoEvent... | org . junit . Assert . assertEquals ( infoManifestacaoDestinatario , infoEventoManifestacaoDestinatario . getManifestacaoDestinatario ( ) ) |
manageModificationVDiskDeletion_VSDISKDELETING_VDisksDestroyed ( ) { org . oscm . app . iaas . data . FlowState flowState = org . oscm . app . iaas . data . FlowState . VSDISK_DELETING ; org . oscm . app . iaas . data . FlowState newState = null ; paramHandler . getIaasContext ( ) . setVSystemStatus ( "NORMAL" ) ; doRe... | org . junit . Assert . assertEquals ( FlowState . VSERVER_UPDATING , newState ) |
testIncreasingRobustnessItersIncreasesSmoothnessWithOutliers ( ) { int numPoints = 100 ; double [ ] xval = new double [ numPoints ] ; double [ ] yval = new double [ numPoints ] ; double xnoise = 0.1 ; double ynoise = 0.1 ; generateSineData ( xval , yval , xnoise , ynoise ) ; yval [ ( numPoints / 3 ) ] *= 100 ; yval [ (... | org . junit . Assert . assertTrue ( ( ( variances [ i ] ) < ( variances [ ( i - 1 ) ] ) ) ) |
getActiveClusterNodeWithExcludePredicate_predicate_is_null ( ) { java . util . List < com . behase . relumin . service . ClusterNode > nodes = com . google . common . collect . Lists . newArrayList ( com . behase . relumin . service . ClusterNode . builder ( ) . nodeId ( "PONG" 2 ) . hostAndPort ( "localhost:10000" ) .... | org . junit . Assert . assertThat ( result . getNodeId ( ) , is ( "PONG" 2 ) ) |
testWelOverlapTweeActiesZonderDegAndersom ( ) { final java . util . List < nl . bzk . brp . model . basis . BerichtIdentificeerbaar > overtreders = brby0024 . voerRegelUit ( maakBericht ( 2003 , null , 2001 , 2005 ) ) ; "<AssertPlaceHolder>" ; } size ( ) { return elementen . size ( ) ; } | org . junit . Assert . assertEquals ( 1 , overtreders . size ( ) ) |
testPageBlobHFlush ( ) { org . apache . hadoop . fs . Path path = getBlobPathWithTestName ( org . apache . hadoop . fs . azure . ITestOutputStreamSemantics . PAGE_BLOB_DIR ) ; try ( org . apache . hadoop . fs . FSDataOutputStream stream = fs . create ( path ) ) { "<AssertPlaceHolder>" ; byte [ ] buffer = getRandomBytes... | org . junit . Assert . assertTrue ( isPageBlobStreamWrapper ( stream ) ) |
testGetJobXml ( ) { final java . lang . String jobName = "pr" ; java . lang . String xmlReturned = server . getJobXml ( jobName ) ; "<AssertPlaceHolder>" ; } getJobXml ( java . lang . String ) { return client . get ( ( ( "/job/" + ( encode ( jobName ) ) ) + "/config.xml" ) ) ; } | org . junit . Assert . assertTrue ( ( ( xmlReturned . length ( ) ) > 0 ) ) |
testOneExistingAuthorizerProfileMatch ( ) { profile . setId ( org . pac4j . core . authorization . checker . VALUE ) ; final org . pac4j . core . authorization . checker . Map < java . lang . String , org . pac4j . core . authorization . authorizer . Authorizer > authorizers = new org . pac4j . core . authorization . c... | org . junit . Assert . assertTrue ( checker . isAuthorized ( null , profiles , org . pac4j . core . authorization . checker . NAME , authorizers ) ) |
testTruncTimestampValues_Year ( ) { java . lang . String sqlText = "values<sp>truncate(timestamp('2011-12-26',<sp>'17:13:30'),<sp>'YEAR')" ; java . sql . ResultSet rs = com . splicemachine . derby . impl . sql . execute . operations . TruncateFunctionIT . spliceClassWatcher . executeQuery ( sqlText ) ; java . lang . St... | org . junit . Assert . assertEquals ( ( ( "\n" + sqlText ) + "\n" ) , expected , TestUtils . FormattedResult . ResultFactory . toStringUnsorted ( rs ) ) |
streamsAnyMatch ( ) { java . util . List < com . insightfullogic . java8 . examples . chapter1 . Track > tracksOnColtrane = asList ( new com . insightfullogic . java8 . examples . chapter1 . Track ( "Bakai" , 524 ) , new com . insightfullogic . java8 . examples . chapter1 . Track ( "Violets<sp>for<sp>Your<sp>Furs" , 37... | org . junit . Assert . assertTrue ( matchLength ) |
testParseHandlesBlanksCells ( ) { org . apache . poi . ss . usermodel . Workbook workbook = createWorkbook ( "/excel/TestBlankCells.xlsx" ) ; com . streamsets . pipeline . lib . parser . excel . WorkbookParser parser = new com . streamsets . pipeline . lib . parser . excel . WorkbookParser ( settingsWithHeader , getCon... | org . junit . Assert . assertEquals ( expectedFirstRow , recordFirstRow . get ( ) ) |
testUnmappedGuestRevocation ( ) { org . candlepin . model . Owner owner1 = new org . candlepin . model . Owner ( "o1" ) ; owner1 . setId ( "o1-id" ) ; org . candlepin . model . Owner owner2 = new org . candlepin . model . Owner ( "o2" ) ; owner2 . setId ( "o2-id" ) ; org . candlepin . model . Product product1 = org . c... | org . junit . Assert . assertEquals ( 1 , total ) |
should_set_breakend_unanchored ( ) { for ( au . edu . wehi . idsv . BreakendSummary bs : com . google . common . collect . ImmutableList . of ( new au . edu . wehi . idsv . BreakendSummary ( 0 , FWD , 2 , 1 , 2 ) , new au . edu . wehi . idsv . BreakendSummary ( 0 , BWD , 1 , 1 , 2 ) ) ) { au . edu . wehi . idsv . Singl... | org . junit . Assert . assertEquals ( bs , e . getBreakendSummary ( ) ) |
testReferenceSize ( ) { org . apache . hadoop . hbase . io . TestHeapSize . LOG . info ( ( "ClassSize.REFERENCE<sp>is<sp>" + ( org . apache . hadoop . hbase . util . ClassSize . REFERENCE ) ) ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertTrue ( ( ( ( org . apache . hadoop . hbase . util . ClassSize . REFERENCE ) == 4 ) || ( ( org . apache . hadoop . hbase . util . ClassSize . REFERENCE ) == 8 ) ) ) |
testReadToGap ( ) { int expected = 2 ; int actual = de . nx42 . maps4cim . header . HeaderParser . readToGap ( de . nx42 . maps4cim . header . HeaderParserTest . inputGap , 0 , 2 ) ; "<AssertPlaceHolder>" ; } readToGap ( byte [ ] , int , int ) { return de . nx42 . maps4cim . util . math . KMPMatch . indexOf ( header , ... | org . junit . Assert . assertEquals ( expected , actual ) |
testModifyWithLockOnActive ( ) { final org . kie . api . KieBase kbase = org . drools . compiler . integrationtests . SerializationHelper . serializeObject ( loadKnowledgeBase ( "test_ModifyWithLockOnActive.drl" ) ) ; final org . kie . api . runtime . KieSession session = createKnowledgeSession ( kbase ) ; final java .... | org . junit . Assert . assertEquals ( 2 , ( ( java . util . List ) ( session . getGlobal ( "results" ) ) ) . size ( ) ) |
testNoTypeSystemMerge ( ) { org . apache . uima . jcas . JCas jcas = org . apache . uima . fit . factory . JCasFactory . createJCas ( ) ; org . apache . uima . collection . CollectionReader reader = createReader ( de . tudarmstadt . ukp . dkpro . core . io . xmi . XmiReader . class , XmiReader . PARAM_SOURCE_LOCATION ,... | org . junit . Assert . assertNull ( spanType ) |
zrevrange ( ) { redis . zadd ( key , 1.0 , "a" , 2.0 , "b" , 3.0 , "c" ) ; "<AssertPlaceHolder>" ; } zrevrange ( K , long , long ) { com . lambdaworks . redis . CommandArgs < K , V > args = new com . lambdaworks . redis . CommandArgs < K , V > ( codec ) . addKey ( key ) . add ( start ) . add ( stop ) ; return dispatch ... | org . junit . Assert . assertEquals ( list ( "c" , "b" , "a" ) , redis . zrevrange ( key , 0 , ( - 1 ) ) ) |
testRegisterInValidExternalSession ( ) { org . openqa . selenium . server . BrowserSessionFactory factory = getTestSessionFactory ( ) ; org . openqa . selenium . server . BrowserSessionFactory . BrowserSessionInfo info = new org . openqa . selenium . server . BrowserSessionFactory . BrowserSessionInfo ( org . openqa . ... | org . junit . Assert . assertFalse ( factory . hasActiveSession ( info . sessionId ) ) |
testMultiNormalizerStandardizeFitLabels ( ) { org . nd4j . linalg . dataset . MultiNormalizerStandardize original = new org . nd4j . linalg . dataset . MultiNormalizerStandardize ( ) ; original . setFeatureStats ( java . util . Arrays . asList ( new org . nd4j . linalg . dataset . api . preprocessor . stats . Distribut... | org . junit . Assert . assertEquals ( original , restored ) |
testCanDeleteDirWithOpenDirStraem ( ) { java . nio . file . Path dir = root . resolve ( "dir" ) ; java . nio . file . Files . createDirectories ( dir ) ; java . nio . file . Path child = dir . resolve ( "child" ) ; java . nio . file . Files . createDirectories ( child ) ; try ( java . nio . file . DirectoryStream < jav... | org . junit . Assert . assertFalse ( java . nio . file . Files . exists ( child ) ) |
testInverse ( ) { javax . measure . Unit < ? > result = one . inverse ( ) ; "<AssertPlaceHolder>" ; } inverse ( ) { return ( ( tec . units . ri . AbstractQuantity < Q > ) ( tec . units . ri . quantity . NumberQuantity . of ( ( 1.0 / ( value . doubleValue ( ) ) ) , tec . units . ri . quantity . NumberQuantity . getUnit ... | org . junit . Assert . assertEquals ( result , one ) |
testCreateContexts ( ) { org . osgi . service . component . ComponentContext cc = mockery . mock ( org . osgi . service . component . ComponentContext . class ) ; com . ibm . ws . serialization . internal . SerializationServiceImpl service = new com . ibm . ws . serialization . internal . SerializationServiceImpl ( ) ;... | org . junit . Assert . assertEquals ( 2 , ois . readObject ( ) ) |
isReady_zeroResponseStatus ( ) { final uk . co . flax . biosolr . ontology . config . SolrConfiguration config = mock ( uk . co . flax . biosolr . ontology . config . SolrConfiguration . class ) ; org . apache . solr . client . solrj . response . SolrPingResponse response = mock ( org . apache . solr . client . solrj .... | org . junit . Assert . assertTrue ( engine . isReady ( ) ) |
testSerializability ( ) { final org . apache . flink . api . common . serialization . SimpleStringSchema schema = new org . apache . flink . api . common . serialization . SimpleStringSchema ( java . nio . charset . StandardCharsets . UTF_16LE ) ; final org . apache . flink . api . common . serialization . SimpleString... | org . junit . Assert . assertEquals ( schema . getCharset ( ) , copy . getCharset ( ) ) |
testGetHeight ( ) { org . eclipse . swt . widgets . Display display = new org . eclipse . swt . widgets . Display ( ) ; org . eclipse . swt . graphics . GC gc = new org . eclipse . swt . graphics . GC ( display ) ; gc . setFont ( new org . eclipse . swt . graphics . Font ( display , "Arial" , 10 , org . eclipse . swt .... | org . junit . Assert . assertTrue ( ( height30 > height10 ) ) |
testOptionalImport ( ) { changeLocationSettings ( "default" ) ; com . ibm . ws . config . xml . internal . ServerConfiguration clientConfig = com . ibm . ws . config . xml . internal . XMLClientConfigParserTest . configParser . parseServerConfiguration ( new java . io . StringReader ( "<client><include<sp>optional=\"tr... | org . junit . Assert . assertEquals ( "test" , map . get ( "bar" ) ) |
canRegisterBuilder ( ) { scriptBuilderResolver . registerBuilder ( ".foo" , "org.example.FooBar" ) ; "<AssertPlaceHolder>" ; } getBuilderClassName ( java . lang . String ) { java . lang . String resultingBuilderClassName = extensionToBuilders . get ( extension ) ; if ( resultingBuilderClassName == null ) { throw new co... | org . junit . Assert . assertEquals ( "org.example.FooBar" , scriptBuilderResolver . getBuilderClassName ( ".foo" ) ) |
runnableFailure ( ) { final java . lang . RuntimeException ex = new java . lang . RuntimeException ( ) ; try { txnService ( ) . run ( session ( ) , new java . lang . Runnable ( ) { @ com . foundationdb . server . store . Override public void run ( ) { writeRow ( tid , 1 ) ; throw ex ; } } ) ; org . junit . Assert . fai... | org . junit . Assert . assertEquals ( ex , e ) |
getParentRegardlessOfScheme_root ( ) { org . apache . hadoop . fs . Path path = new org . apache . hadoop . fs . Path ( "proto://host1/foo" ) ; java . util . ArrayList < org . apache . hadoop . fs . Path > candidates = new java . util . ArrayList ( ) ; org . apache . hadoop . fs . Path expectedPath ; candidates . add (... | org . junit . Assert . assertEquals ( expectedPath , res ) |
testBuildWithParameters ( ) { org . lnu . is . domain . person . Person person = new org . lnu . is . domain . person . Person ( ) ; org . lnu . is . domain . address . type . AddressType addressType = new org . lnu . is . domain . address . type . AddressType ( ) ; org . lnu . is . domain . admin . unit . AdminUnit ad... | org . junit . Assert . assertEquals ( expectedQuery , actualQuery ) |
testGetPipelineByName ( ) { verifyPipelineIsNotRegistered ( pipeline ) ; pipelineRegistry . registerPipeline ( pipeline ) ; org . guvnor . ala . pipeline . Pipeline result = pipelineRegistry . getPipelineByName ( org . guvnor . ala . registry . inmemory . InMemoryPipelineRegistryTest . PIPELINE_ID ) ; "<AssertPlaceHold... | org . junit . Assert . assertEquals ( pipeline , result ) |
testM70MethodInvocation ( ) { fr . inria . main . CommandSummary command = fr . inria . astor . test . repair . evaluation . regression . MathCommandsTests . getMath70Command ( ) ; command . command . put ( "-parameters" , ( ( ( ExtensionPoints . TARGET_CODE_PROCESSOR . identifier ) + ( java . io . File . pathSeparator... | org . junit . Assert . assertTrue ( ( ( variantss . size ( ) ) > 0 ) ) |
getStartPos ( ) { final java . awt . Point origin = new java . awt . Point ( ( - 7 ) , 11 ) ; image = createSequentialImage ( origin . x , origin . y , org . jaitools . imageutils . iterator . SimpleIteratorTest . WIDTH , org . jaitools . imageutils . iterator . SimpleIteratorTest . HEIGHT , org . jaitools . imageutils... | org . junit . Assert . assertEquals ( origin , iter . getStartPos ( ) ) |
saveEncounter_shouldFailfIfUserIsNotSupposedToEditEncountersOfTypeOfGivenEncounter ( ) { org . openmrs . Encounter encounter = getEncounterWithEditPrivilege ( ) ; org . openmrs . User user = org . openmrs . api . context . Context . getUserService ( ) . getUserByUsername ( "test_user" ) ; "<AssertPlaceHolder>" ; org . ... | org . junit . Assert . assertNotNull ( user ) |
test1 ( ) { System . out . println ( "inside<sp>test1" ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertTrue ( true ) |
shouldInstrumentIfWithBraces ( ) { java . lang . String source = "if<sp>(x<sp>><sp>10)\n{\n<sp>x++;\n}" ; java . lang . String instrumentedSource = sourceProcessor . instrumentSource ( source ) ; java . lang . String expectedSource = "_$jscoverage[\'test.js\'].lineData[1]++;\nif<sp>(x<sp>><sp>10)<sp>{\n<sp>_$jscoverage... | org . junit . Assert . assertEquals ( expectedSource , instrumentedSource ) |
trashDeleteEmpty ( ) { final java . lang . String ixname = "empty" ; org . cojen . tupl . Index ix = mDb . openIndex ( ixname ) ; mDb . deleteIndex ( ix ) ; mDb . checkpoint ( ) ; mDb = reopenTempDatabase ( getClass ( ) , mDb , mConfig ) ; "<AssertPlaceHolder>" ; } findIndex ( org . cojen . tupl . Index ) { if ( ( acti... | org . junit . Assert . assertNull ( mDb . findIndex ( ixname ) ) |
testCloseNotPropagated ( ) { org . apache . flink . runtime . state . KeyedStateCheckpointOutputStream stream = org . apache . flink . runtime . state . KeyedStateCheckpointOutputStreamTest . createStream ( new org . apache . flink . runtime . state . KeyGroupRange ( 0 , 0 ) ) ; org . apache . flink . runtime . state .... | org . junit . Assert . assertFalse ( innerStream . isClosed ( ) ) |
testSerialization ( ) { com . groupon . mapreduce . mongo . WritableBSONObject x = new com . groupon . mapreduce . mongo . WritableBSONObject ( ) ; x . put ( "key1" , 4 ) ; x . put ( "key2" , 9 ) ; com . groupon . mapreduce . mongo . WritableBSONObject x2 = new com . groupon . mapreduce . mongo . WritableBSONObject ( )... | org . junit . Assert . assertEquals ( x , x2 ) |
testCreateNewRole ( ) { com . devopsbuddy . backend . persistence . domain . backend . Role userRole = createRole ( RolesEnum . BASIC ) ; roleRepository . save ( userRole ) ; com . devopsbuddy . backend . persistence . domain . backend . Role retrievedRole = roleRepository . findOne ( RolesEnum . BASIC . getId ( ) ) ; ... | org . junit . Assert . assertNotNull ( retrievedRole ) |
getOnly ( ) { org . eclipse . collections . api . map . MapIterable < java . lang . String , java . lang . String > map = this . newMapWithKeyValue ( "1" , "One" ) ; "<AssertPlaceHolder>" ; } getOnly ( ) { org . eclipse . collections . impl . test . Verify . assertThrows ( org . eclipse . collections . impl . map . imm... | org . junit . Assert . assertEquals ( "One" , map . getOnly ( ) ) |
testSuccessSimpleLockingOnUpdate ( ) { createSimpleLockingDataSet ( ) ; java . util . List < org . apache . cayenne . testdo . locking . SimpleLockingTestEntity > allObjects = new org . apache . cayenne . query . SelectQuery ( org . apache . cayenne . testdo . locking . SimpleLockingTestEntity . class ) . select ( cont... | org . junit . Assert . assertEquals ( 1 , allObjects . size ( ) ) |
shouldConvertToMap ( ) { br . com . uol . pagseguro . api . utils . RequestMap expectedMap = new br . com . uol . pagseguro . api . utils . RequestMap ( ) ; expectedMap . putMap ( new java . util . HashMap < java . lang . String , java . lang . String > ( ) { { put ( "email" , "email" ) ; put ( "token" , "token" ) ; } ... | org . junit . Assert . assertEquals ( expectedMap , map ) |
estimated_finish_time_must_not_be_null ( ) { fr . norad . visuwall . api . domain . SoftwareProjectId softwareProjectId = new fr . norad . visuwall . api . domain . SoftwareProjectId ( "projectId" ) ; java . util . Date estimatedFinishTime = sonar . getEstimatedFinishTime ( softwareProjectId , 1 ) ; "<AssertPlaceHolder... | org . junit . Assert . assertNotNull ( estimatedFinishTime ) |
testGetParameters ( ) { org . lnu . is . domain . publicactivity . PublicActivityType entity = new org . lnu . is . domain . publicactivity . PublicActivityType ( ) ; java . lang . String name = "first<sp>blood" ; java . lang . String abbrName = "fb" ; entity . setName ( name ) ; entity . setAbbrName ( abbrName ) ; jav... | org . junit . Assert . assertEquals ( expected , actual ) |
updateAPdcPositionWithoutAnyValues ( ) { try { putAt ( aResourceURI ( ) , aPdcPositionWithoutAnyValues ( ) ) ; } catch ( com . sun . jersey . api . client . UniformInterfaceException ex ) { int receivedStatus = ex . getResponse ( ) . getStatus ( ) ; int badRequest = Status . BAD_REQUEST . getStatusCode ( ) ; "<AssertPl... | org . junit . Assert . assertThat ( receivedStatus , org . hamcrest . Matchers . is ( badRequest ) ) |
kind ( ) { final org . apache . olingo . server . api . uri . UriInfo uriInfo = new org . apache . olingo . server . core . uri . UriInfoImpl ( ) . setKind ( UriInfoKind . all ) ; "<AssertPlaceHolder>" ; } getKind ( ) { return org . apache . olingo . commons . api . edm . constants . EdmTypeKind . PRIMITIVE ; } | org . junit . Assert . assertEquals ( UriInfoKind . all , uriInfo . getKind ( ) ) |
testHuidigeSituatieGeenOpschorting ( ) { nl . bzk . brp . model . bericht . kern . PersoonBericht nieuweSituatie = new nl . bzk . brp . model . bericht . kern . PersoonBericht ( ) ; java . util . List < nl . bzk . brp . model . validatie . Melding > meldingen = bral9003 . executeer ( persoon1 , nieuweSituatie , nl . bz... | org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) ) |
clear ( ) { com . google . bitcoin . core . ECKey unencryptedKey = new com . google . bitcoin . core . ECKey ( ) ; com . google . bitcoin . core . ECKey encryptedKey = new com . google . bitcoin . core . ECKey ( ) . encrypt ( keyCrypter , keyCrypter . deriveKey ( com . google . bitcoin . core . ECKeyTest . PASSWORD1 ) ... | org . junit . Assert . assertTrue ( ( ( unencryptedKey . getEncryptedPrivateKey ( ) ) == null ) ) |
fetchFirst ( ) { "<AssertPlaceHolder>" ; } fetchFirst ( ) { return oneResult ( false ) ; } | org . junit . Assert . assertNotNull ( query . fetchFirst ( ) ) |
testGetPolices_exceptionInQuery_assertException ( ) { final javax . persistence . EntityManager manager = mock ( javax . persistence . EntityManager . class ) ; doThrow ( new java . lang . RuntimeException ( "Just<sp>Passing<sp>Through" ) ) . when ( manager ) . createQuery ( ( ( java . lang . String ) ( any ( ) ) ) ) ;... | org . junit . Assert . assertTrue ( exceptionOccured ) |
testSelectByExample4 ( ) { org . apache . ibatis . session . SqlSession sqlSession = tk . mybatis . mapper . mapper . MybatisHelper . getSqlSession ( ) ; try { tk . mybatis . mapper . model . Country ct = new tk . mybatis . mapper . model . Country ( ) ; ct . setCountryname ( "China" ) ; tk . mybatis . mapper . mapper ... | org . junit . Assert . assertEquals ( 1 , countries . size ( ) ) |
testComputeVec4FromStringWithBlank ( ) { java . lang . String vectorString = "" ; gov . nasa . worldwind . geom . Vec4 result = au . gov . ga . worldwind . common . util . Util . computeVec4FromString ( vectorString ) ; "<AssertPlaceHolder>" ; } computeVec4FromString ( java . lang . String ) { if ( au . gov . ga . worl... | org . junit . Assert . assertNull ( result ) |
testInitialize ( ) { fallbackInput . value = "something" ; view . initialize ( ) ; "<AssertPlaceHolder>" ; verify ( dropdown ) . selectpicker ( "val" , "" ) ; } initialize ( ) { this . text = new com . ait . lienzo . client . core . shape . Text ( "" ) . setAlpha ( org . kie . workbench . common . stunner . client . li... | org . junit . Assert . assertEquals ( "" , fallbackInput . value ) |
testProcess ( ) { org . pentaho . hadoop . shim . spi . HadoopShim hadoopShim = new org . pentaho . hadoop . shim . spi . MockHadoopShim ( ) ; org . pentaho . hadoop . shim . HadoopConfiguration c = spy ( new org . pentaho . hadoop . shim . HadoopConfiguration ( org . apache . commons . vfs2 . VFS . getManager ( ) . re... | org . junit . Assert . assertEquals ( hadoopShim . getHadoopVersion ( ) , c . getHadoopShim ( ) . getHadoopVersion ( ) ) |
testGetPairs ( ) { int minSize = 2 ; java . util . List < com . github . davidmoten . rtree3d . geometry . HasGeometry > list = com . google . common . collect . Lists . newArrayList ( ) ; list . add ( com . github . davidmoten . rtree3d . SplitterRStarTest . point ( 1 , 1 ) . mbb ( ) ) ; list . add ( com . github . da... | org . junit . Assert . assertEquals ( 2 , pairs . size ( ) ) |
shouldApplyTrue ( ) { javax . servlet . http . HttpServletRequest httpServletRequest = createMock ( javax . servlet . http . HttpServletRequest . class ) ; expect ( httpServletRequest . getHeader ( "Authorization" ) ) . andReturn ( "Negotiate<sp>....." ) . once ( ) ; expect ( configuration . getKerberosAuthenticationPr... | org . junit . Assert . assertTrue ( filter . shouldApply ( httpServletRequest ) ) |
testDeeperPathExtraction ( ) { java . lang . String regex = "^/([^/]+/[^/]+)(/|$)" ; org . apache . druid . query . extraction . ExtractionFn extractionFn = new org . apache . druid . query . extraction . RegexDimExtractionFn ( regex , false , null ) ; java . util . Set < java . lang . String > extracted = new java . u... | org . junit . Assert . assertEquals ( expected , extracted ) |
testOutOfBoundsThrownOnMalformedString ( ) { io . netty . buffer . ByteBuf byteBuffer = ByteBufAllocator . DEFAULT . buffer ( 5 ) ; byteBuffer . writeInt ( Integer . MAX_VALUE ) ; java . lang . Exception e = null ; try { org . apache . activemq . artemis . api . core . SimpleString . readSimpleString ( byteBuffer ) ; }... | org . junit . Assert . assertTrue ( ( e instanceof java . lang . IndexOutOfBoundsException ) ) |
testMapDupsIgnored ( ) { org . apache . drill . exec . physical . rowSet . project . RequestedTuple projSet = org . apache . drill . exec . physical . rowSet . project . RequestedTupleImpl . parse ( org . apache . drill . exec . physical . rowSet . impl . RowSetTestUtils . projectList ( "a" , "a.b" , "a.c" , "a.b" ) ) ... | org . junit . Assert . assertEquals ( 1 , cols . size ( ) ) |
testSerialization ( ) { org . jfree . chart . plot . CombinedRangeCategoryPlot plot1 = createPlot ( ) ; org . jfree . chart . plot . CombinedRangeCategoryPlot plot2 = ( ( org . jfree . chart . plot . CombinedRangeCategoryPlot ) ( org . jfree . chart . TestUtilities . serialised ( plot1 ) ) ) ; "<AssertPlaceHolder>" ; }... | org . junit . Assert . assertEquals ( plot1 , plot2 ) |
canBeSatisfiedTrue ( ) { eu . abc4trust . services . user . UserServiceFactory userServiceFactory = new eu . abc4trust . services . user . UserServiceFactory ( ) ; java . lang . String engineSuffix = "idemix" ; eu . abc4trust . xml . IssuancePolicyAndAttributes issuancePolicyAndAttributes = userServiceFactory . loadIss... | org . junit . Assert . assertTrue ( b ) |
test58 ( ) { net . pms . formats . AudioAsVideo audioAsVideo0 = new net . pms . formats . AudioAsVideo ( ) ; java . lang . String [ ] str_array1 = audioAsVideo0 . getSupportedExtensions ( ) ; "<AssertPlaceHolder>" ; } getSupportedExtensions ( ) { return new java . lang . String [ ] { "ogg" , "ogm" , "ogv" } ; } | org . junit . Assert . assertNotNull ( str_array1 ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.